Skip to content

Commit

Permalink
fix: lower log level in case when lock acquiring fails
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan Shelomentsev committed Apr 4, 2022
1 parent 1aef8cc commit a03e77a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/managers/BaseManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export abstract class BaseManager {
try {
isKeySuccessfullyLocked = await this.storage.lockKey(context.key);
} catch (keyLockError: unknown) {
this.logger.error(
this.logger.info(
`Error occurred while trying to lock key "${context.key}". Reason: ${
(keyLockError as Error).message
}. Running executor`
Expand All @@ -75,7 +75,7 @@ export abstract class BaseManager {
}

try {
this.logger.trace(`Running executor for key "${context.key}"`);
this.logger.info(`Running executor for key "${context.key}"`);
const executorResult = await runExecutor(context.executor);

await this.set(context.key, executorResult, options);
Expand Down

0 comments on commit a03e77a

Please sign in to comment.