Skip to content

Commit

Permalink
[Code]: downgrade the log level of error message from subprocess (#42925
Browse files Browse the repository at this point in the history
)
  • Loading branch information
zfy0701 authored Aug 12, 2019
1 parent 0891db0 commit 44f26d5
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions x-pack/legacy/plugins/code/server/log.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,10 @@ export class Logger implements VsLogger {
colors: process.stdout.isTTY,
});
}

this.server.log([...this.baseTags, 'error', 'stderr'], msg);
if (this.verbose) {
this.server.log([...this.baseTags, 'error', 'stderr'], msg);
} else {
this.server.log([...this.baseTags, 'debug', 'stderr'], msg);
}
}
}

0 comments on commit 44f26d5

Please sign in to comment.