From 78287fcc2a812b3f24b7dc56fda90999e773b5b8 Mon Sep 17 00:00:00 2001 From: garrettmills Date: Sat, 10 Apr 2021 16:18:33 -0500 Subject: [PATCH] Make logging of locks more descriptive --- src/app/units/FirebaseUnit.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/units/FirebaseUnit.ts b/src/app/units/FirebaseUnit.ts index d0b9966..31b58ac 100644 --- a/src/app/units/FirebaseUnit.ts +++ b/src/app/units/FirebaseUnit.ts @@ -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) })