Skip to content

Commit

Permalink
Use console.error and console.warn for errors and warnings (#236048)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexdima authored Dec 15, 2024
1 parent 8fca93f commit 4325b8c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/vs/platform/log/common/log.ts
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ export class ConsoleLogger extends AbstractLogger implements ILogger {
warn(message: string | Error, ...args: any[]): void {
if (this.canLog(LogLevel.Warning)) {
if (this.useColors) {
console.log('%c WARN', 'color: #993', message, ...args);
console.warn('%c WARN', 'color: #993', message, ...args);
} else {
console.log(message, ...args);
}
Expand All @@ -442,7 +442,7 @@ export class ConsoleLogger extends AbstractLogger implements ILogger {
error(message: string, ...args: any[]): void {
if (this.canLog(LogLevel.Error)) {
if (this.useColors) {
console.log('%c ERR', 'color: #f33', message, ...args);
console.error('%c ERR', 'color: #f33', message, ...args);
} else {
console.error(message, ...args);
}
Expand Down

0 comments on commit 4325b8c

Please sign in to comment.