mirror of
https://github.com/ckaczor/vscode-gitlens.git
synced 2026-01-23 17:26:14 -05:00
Refactors Logger.error to take the Error object
This commit is contained in:
@@ -50,13 +50,13 @@ export class Logger {
|
||||
}
|
||||
}
|
||||
|
||||
static error(message?: any, ...params: any[]): void {
|
||||
static error(ex: Error, classOrMethod?: string, ...params: any[]): void {
|
||||
if (debug) {
|
||||
console.error(ConsolePrefix, message, ...params);
|
||||
console.error(ConsolePrefix, ex, ...params);
|
||||
}
|
||||
|
||||
if (level !== OutputLevel.Silent) {
|
||||
output.appendLine([message, ...params].join(' '));
|
||||
output.appendLine([ex, ...params].join(' '));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user