Skip to content

Commit

Permalink
[logging] make sure that message is first arg to apply printf
Browse files Browse the repository at this point in the history
Signed-off-by: Anton Kosyakov <anton.kosyakov@typefox.io>
  • Loading branch information
akosyakov committed Jan 9, 2020
1 parent c8b8854 commit b445b08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/common/logger-protocol.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,6 @@ export namespace ConsoleLogger {
export function log(name: string, logLevel: number, message: string, params: any[]): void {
const console = consoles.get(logLevel) || originalConsoleLog;
const severity = (LogLevel.strings.get(logLevel) || 'unknown').toUpperCase();
console(`${name} ${severity}`, message, ...params);
console(`${name} ${severity} ${message}`, ...params);
}
}

0 comments on commit b445b08

Please sign in to comment.