提交 f4fa2da7 编写于 作者: S Sandeep Somavarapu

#84283 use log service to log

上级 b2fcf2d3
......@@ -14,6 +14,7 @@ import { AbstractExtHostOutputChannel, ExtHostPushOutputChannel, ExtHostOutputSe
import { IExtHostInitDataService } from 'vs/workbench/api/common/extHostInitDataService';
import { IExtHostRpcService } from 'vs/workbench/api/common/extHostRpcService';
import { MutableDisposable } from 'vs/base/common/lifecycle';
import { ILogService } from 'vs/platform/log/common/log';
export class ExtHostOutputChannelBackedByFile extends AbstractExtHostOutputChannel {
......@@ -55,6 +56,7 @@ export class ExtHostOutputService2 extends ExtHostOutputService {
constructor(
@IExtHostRpcService extHostRpc: IExtHostRpcService,
@ILogService private readonly logService: ILogService,
@IExtHostInitDataService initData: IExtHostInitDataService,
) {
super(extHostRpc);
......@@ -90,7 +92,7 @@ export class ExtHostOutputService2 extends ExtHostOutputService {
return new ExtHostOutputChannelBackedByFile(name, appender, this._proxy);
} catch (error) {
// Do not crash if logger cannot be created
console.log(error);
this.logService.error(error);
return new ExtHostPushOutputChannel(name, this._proxy);
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册