Make logging of locks more descriptive

main
Garrett Mills 3 years ago
parent d07feccd14
commit 78287fcc2a
Signed by: garrettmills
GPG Key ID: D2BF5FBA8298F246

@ -58,12 +58,12 @@ export class FirebaseUnit extends Unit {
return Promise.resolve()
}
this.logging.debug(`Unable to acquire lock: ${name}. Trying again soon...`)
this.logging.debug(`Unable to acquire lock: ${name} - ${description}. Trying again soon...`)
await this.sleep(500)
return this.trylock(name, description)
})
.catch(async reason => {
this.logging.debug(`Unable to acquire lock: ${name}. Trying again soon...`)
this.logging.debug(`Unable to acquire lock: ${name} - ${description}. Trying again soon...`)
await this.sleep(500)
return this.trylock(name, description)
})

Loading…
Cancel
Save