File tree Expand file tree Collapse file tree 2 files changed +1
-12
lines changed Expand file tree Collapse file tree 2 files changed +1
-12
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -22,7 +22,6 @@ import {
22
22
winterCGRequestToRequestData ,
23
23
} from '@sentry/utils' ;
24
24
import type { APIContext , MiddlewareResponseHandler } from 'astro' ;
25
- import { DEBUG_BUILD } from '../../debug-build' ;
26
25
27
26
type MiddlewareOptions = {
28
27
/**
@@ -197,11 +196,9 @@ async function instrumentRequest(
197
196
( async ( ) => {
198
197
// Flushes pending Sentry events with a 2-second timeout and in a way that cannot create unhandled promise rejections.
199
198
try {
200
- DEBUG_BUILD && logger . log ( 'Flushing events...' ) ;
201
199
await flush ( 2000 ) ;
202
- DEBUG_BUILD && logger . log ( 'Done flushing events' ) ;
203
200
} catch ( e ) {
204
- DEBUG_BUILD && logger . log ( 'Error while flushing events:\n' , e ) ;
201
+ logger . log ( 'Error while flushing events:\n' , e ) ;
205
202
}
206
203
} ) ( ) ,
207
204
) ;
You can’t perform that action at this time.
0 commit comments