@@ -233,7 +233,6 @@ export class ContainerMapping implements IMicrosoftSecurityDevOps {
233233 core . info ( `Checking if client is onboarded` ) ;
234234 return await this . _checkCallerIsCustomer ( bearerToken )
235235 . then ( async ( statusCode ) => {
236- core . info ( `Status Code is ${ statusCode } ` ) ;
237236 if ( statusCode == 200 ) { // Status 'OK' means the caller is an onboarded customer.
238237 return true ;
239238 } else if ( statusCode == 403 ) { // Status 'Forbidden' means caller is not a customer.
@@ -250,11 +249,10 @@ export class ContainerMapping implements IMicrosoftSecurityDevOps {
250249 }
251250 } )
252251 . catch ( async ( error ) => {
253- core . info ( `catch on 253: ${ error } ` ) ;
254252 if ( retryCount == 0 ) {
255253 return false ;
256254 } else {
257- core . info ( `Retrying checkCallerIsCustomer call due to error! : ${ error } .\nRetry count: ${ retryCount } ` ) ;
255+ core . info ( `Retrying checkCallerIsCustomer call due to error: ${ error } .\nRetry count: ${ retryCount } ` ) ;
258256 retryCount -- ;
259257 return await this . checkCallerIsCustomer ( bearerToken , retryCount ) ;
260258 }
@@ -280,12 +278,11 @@ export class ContainerMapping implements IMicrosoftSecurityDevOps {
280278 res . on ( 'end' , ( ) => {
281279 core . debug ( 'API calls finished. Time taken: ' + ( new Date ( ) . getMilliseconds ( ) - apiTime ) + "ms" ) ;
282280 core . info ( `Status code: ${ res . statusCode } ${ res . statusMessage } ` ) ; // TODO
283- core . debug ( 'Response headers: ' + JSON . stringify ( res . headers ) ) ;
284281 resolve ( res . statusCode ) ;
285282 } ) ;
286- res . on ( 'data' , function ( d ) {
287- core . info ( `data: ${ d } ` ) ;
288- } ) ;
283+ // res.on('data', function(d) {
284+ // core.info(`data: ${d}`);
285+ // });
289286 } ) ;
290287
291288 req . on ( 'error' , ( error ) => {
0 commit comments