Revert "#84283 use log service to log"

This reverts commit 26e9cf4fa0.
This commit is contained in:
Benjamin Pasero 2019-12-10 08:21:45 +01:00
parent 9288608bdb
commit 44a7203e4a

View file

@ -14,7 +14,6 @@ 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 {
@ -56,7 +55,6 @@ export class ExtHostOutputService2 extends ExtHostOutputService {
constructor(
@IExtHostRpcService extHostRpc: IExtHostRpcService,
@ILogService private readonly logService: ILogService,
@IExtHostInitDataService initData: IExtHostInitDataService,
) {
super(extHostRpc);
@ -92,7 +90,7 @@ export class ExtHostOutputService2 extends ExtHostOutputService {
return new ExtHostOutputChannelBackedByFile(name, appender, this._proxy);
} catch (error) {
// Do not crash if logger cannot be created
this.logService.error(error);
console.log(error);
return new ExtHostPushOutputChannel(name, this._proxy);
}
}