@@ -11,6 +11,7 @@ import { IRequestOptions, IRequestContext, IRequestFunction, request } from 'vs/
1111import { getProxyAgent } from 'vs/base/node/proxy' ;
1212import { IRequestService , IHTTPConfiguration } from 'vs/platform/request/node/request' ;
1313import { IConfigurationService } from 'vs/platform/configuration/common/configuration' ;
14+ import { ILogService } from '../../log/common/log' ;
1415
1516/**
1617 * This service exposes the `request` API, while using the global
@@ -26,7 +27,8 @@ export class RequestService implements IRequestService {
2627 private disposables : IDisposable [ ] = [ ] ;
2728
2829 constructor (
29- @IConfigurationService configurationService : IConfigurationService
30+ @IConfigurationService configurationService : IConfigurationService ,
31+ @ILogService private logService : ILogService
3032 ) {
3133 this . configure ( configurationService . getValue < IHTTPConfiguration > ( ) ) ;
3234 configurationService . onDidChangeConfiguration ( ( ) => this . configure ( configurationService . getValue ( ) ) , this , this . disposables ) ;
@@ -39,6 +41,8 @@ export class RequestService implements IRequestService {
3941 }
4042
4143 async request ( options : IRequestOptions , requestFn : IRequestFunction = request ) : TPromise < IRequestContext > {
44+ this . logService . trace ( 'RequestService#request' , options . url ) ;
45+
4246 const { proxyUrl, strictSSL } = this ;
4347
4448 options . agent = options . agent || await getProxyAgent ( options . url , { proxyUrl, strictSSL } ) ;
0 commit comments