Skip to content

Commit a804363

Browse files
committed
revert(lib/vscode); undo patch logIpc.ts
1 parent 3755995 commit a804363

File tree

1 file changed

+0
-12
lines changed
  • lib/vscode/src/vs/platform/log/common

1 file changed

+0
-12
lines changed

lib/vscode/src/vs/platform/log/common/logIpc.ts

-12
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ export class LoggerChannel implements IServerChannel {
6767
case 'createLogger': this.createLogger(URI.revive(arg[0]), arg[1]); return;
6868
case 'log': return this.log(URI.revive(arg[0]), arg[1]);
6969
case 'consoleLog': return this.consoleLog(arg[0], arg[1]);
70-
case 'setLevel': return this.setLevel(arg[0], this.loggers);
7170
}
7271

7372
throw new Error(`Call not found: ${command}`);
@@ -77,17 +76,6 @@ export class LoggerChannel implements IServerChannel {
7776
this.loggers.set(file.toString(), this.loggerService.createLogger(file, options));
7877
}
7978

80-
/*
81-
NOTE@coder: add this `setLevel` method ourselves.
82-
83-
We believe this could be an upstream bug but not sure.
84-
Patching it this way for now.
85-
3/15/21 jsjoeio
86-
*/
87-
private setLevel(level: LogLevel, loggers: Map<string, ILogger>): void {
88-
loggers.forEach(logger => logger.setLevel(level))
89-
}
90-
9179
private consoleLog(level: LogLevel, args: any[]): void {
9280
let consoleFn = console.log;
9381

0 commit comments

Comments
 (0)