File tree Expand file tree Collapse file tree 3 files changed +9
-18
lines changed
integration-node-globalhandlers/src Expand file tree Collapse file tree 3 files changed +9
-18
lines changed Original file line number Diff line number Diff line change 11import { ClientLike } from '@sentry/types' ;
2- import { forget , logger } from '@sentry/utils' ;
2+ import { logger } from '@sentry/utils' ;
33
44const DEFAULT_SHUTDOWN_TIMEOUT = 2000 ;
55
@@ -12,13 +12,17 @@ export function logAndExitProcess(client: ClientLike): (error: { stack?: string
1212 console . error ( error && error . stack ? error . stack : error ) ;
1313
1414 const timeout = client . options . shutdownTimeout ?? DEFAULT_SHUTDOWN_TIMEOUT ;
15- forget (
16- client . close ( timeout ) . then ( ( result : boolean ) => {
15+ client
16+ . close ( timeout )
17+ . then ( ( result : boolean ) => {
1718 if ( ! result ) {
1819 logger . warn ( 'We reached the timeout for emptying the request buffer, still exiting now!' ) ;
1920 }
2021 global . process . exit ( 1 ) ;
21- } ) ,
22- ) ;
22+ } )
23+ . then ( null , e => {
24+ // eslint-disable-next-line no-console
25+ console . error ( e ) ;
26+ } ) ;
2327 } ;
2428}
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1- export * from './async' ;
21export * from './browser' ;
32export * from './error' ;
43export * from './instrument' ;
You can’t perform that action at this time.
0 commit comments