diff --git a/src/Utils/Logger.ts b/src/Utils/Logger.ts index e5ef9457..1620f075 100644 --- a/src/Utils/Logger.ts +++ b/src/Utils/Logger.ts @@ -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 {