@@ -8,7 +8,7 @@ import { Emitter } from 'vs/base/common/event';
8
8
import { ITelemetryService } from 'vs/platform/telemetry/common/telemetry' ;
9
9
import { INativeEnvironmentService } from 'vs/platform/environment/common/environment' ;
10
10
import { Disposable } from 'vs/base/common/lifecycle' ;
11
- import { ILogger , ILoggerService } from 'vs/platform/log/common/log' ;
11
+ import { ILogger , ILoggerService , LogLevelToString } from 'vs/platform/log/common/log' ;
12
12
import { dirname , join } from 'vs/base/common/path' ;
13
13
import { ChildProcess , spawn } from 'child_process' ;
14
14
import { IProductService } from 'vs/platform/product/common/productService' ;
@@ -71,6 +71,8 @@ export class RemoteTunnelService extends Disposable implements IRemoteTunnelServ
71
71
this . _logger = this . _register ( loggerService . createLogger ( remoteTunnelLogResource , { name : LOGGER_NAME } ) ) ;
72
72
this . _startTunnelProcessDelayer = new Delayer ( 100 ) ;
73
73
74
+ this . _register ( this . _logger . onDidChangeLogLevel ( l => this . _logger . info ( 'Log level changed to ' + LogLevelToString ( l ) ) ) ) ;
75
+
74
76
this . _register ( sharedProcessLifecycleService . onWillShutdown ( e => {
75
77
if ( this . _tunnelProcess ) {
76
78
this . _tunnelProcess . cancel ( ) ;
@@ -154,7 +156,7 @@ export class RemoteTunnelService extends Disposable implements IRemoteTunnelServ
154
156
this . setTunnelStatus ( TunnelStates . connecting ( localize ( 'remoteTunnelService.building' , 'Building CLI from sources' ) ) ) ;
155
157
}
156
158
} ;
157
- const loginProcess = this . runCodeTunneCommand ( 'login' , [ 'user' , 'login' , '--provider' , providerId , '--access-token' , token ] , onOutput ) ;
159
+ const loginProcess = this . runCodeTunneCommand ( 'login' , [ 'user' , 'login' , '--provider' , providerId , '--access-token' , token , '--log' , LogLevelToString ( this . _logger . getLevel ( ) ) ] , onOutput ) ;
158
160
this . _tunnelProcess = loginProcess ;
159
161
try {
160
162
await loginProcess ;
@@ -175,7 +177,7 @@ export class RemoteTunnelService extends Disposable implements IRemoteTunnelServ
175
177
} else {
176
178
this . setTunnelStatus ( TunnelStates . connecting ( localize ( 'remoteTunnelService.openTunnel' , 'Opening tunnel' ) ) ) ;
177
179
}
178
- const args = [ '--parent-process-id' , String ( process . pid ) , '--accept-server-license-terms' ] ;
180
+ const args = [ '--parent-process-id' , String ( process . pid ) , '--accept-server-license-terms' , '--log' , LogLevelToString ( this . _logger . getLevel ( ) ) ] ;
179
181
if ( hostName ) {
180
182
args . push ( '--name' , hostName ) ;
181
183
} else {
0 commit comments