Skip to content

Commit

Permalink
fix: unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
maksadbek committed Nov 14, 2024
1 parent 7739e68 commit cd23ce7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Utils/Logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,18 +80,18 @@ export class Logger {
}

private write(message: string, level: LogLevel, ...args: any[]): void {
const message = `${this.formatHeader(level)} - ${message}`;
const logMessage = `${this.formatHeader(level)} - ${message}`;

if (level <= LogLevel.WARN) {
// write to stderr for errors and warnings
// eslint-disable-next-line no-console
console.error(message, ...args);
console.error(logMessage, ...args);

return;
}

// eslint-disable-next-line no-console
console.log(message, ...args);
console.log(logMessage, ...args);
}

private formatHeader(level: LogLevel): string {
Expand Down

0 comments on commit cd23ce7

Please sign in to comment.