@@ -312,7 +312,7 @@ export abstract class IntegrationBase<
312
312
protected handleProviderException (
313
313
syncReqUsecase : SyncReqUsecase ,
314
314
ex : Error ,
315
- options ?: { scope ?: LogScope | undefined } ,
315
+ options ?: { scope ?: LogScope | undefined ; silent ?: boolean } ,
316
316
) : void {
317
317
if ( ex instanceof CancellationError ) return ;
318
318
@@ -326,10 +326,10 @@ export abstract class IntegrationBase<
326
326
expiresAt : new Date ( Date . now ( ) - 1 ) ,
327
327
} ;
328
328
} else {
329
- this . trackRequestException ( ) ;
329
+ this . trackRequestException ( options ) ;
330
330
}
331
331
} else if ( ex instanceof AuthenticationError || ex instanceof RequestClientError ) {
332
- this . trackRequestException ( ) ;
332
+ this . trackRequestException ( options ) ;
333
333
}
334
334
}
335
335
@@ -358,11 +358,13 @@ export abstract class IntegrationBase<
358
358
}
359
359
360
360
@debug ( )
361
- trackRequestException ( ) : void {
361
+ trackRequestException ( options ?: { silent ?: boolean } ) : void {
362
362
this . requestExceptionCount ++ ;
363
363
364
364
if ( this . requestExceptionCount >= IntegrationBase . requestExceptionLimit && this . _session !== null ) {
365
- void showIntegrationDisconnectedTooManyFailedRequestsWarningMessage ( this . name ) ;
365
+ if ( ! options ?. silent ) {
366
+ void showIntegrationDisconnectedTooManyFailedRequestsWarningMessage ( this . name ) ;
367
+ }
366
368
void this . disconnect ( { currentSessionOnly : true } ) ;
367
369
}
368
370
}
0 commit comments