File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
packages/sveltekit/src/server-common Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 1
1
import type { Span } from '@sentry/core' ;
2
2
import {
3
3
continueTrace ,
4
+ debug ,
4
5
getCurrentScope ,
5
6
getDefaultIsolationScope ,
6
7
getIsolationScope ,
7
8
getTraceMetaTags ,
8
- logger ,
9
9
SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN ,
10
10
SEMANTIC_ATTRIBUTE_SENTRY_SOURCE ,
11
11
setHttpStatus ,
@@ -112,7 +112,7 @@ async function instrumentHandle(
112
112
if ( getIsolationScope ( ) !== getDefaultIsolationScope ( ) ) {
113
113
getIsolationScope ( ) . setTransactionName ( routeName ) ;
114
114
} else {
115
- DEBUG_BUILD && logger . warn ( 'Isolation scope is default isolation scope - skipping setting transactionName' ) ;
115
+ DEBUG_BUILD && debug . warn ( 'Isolation scope is default isolation scope - skipping setting transactionName' ) ;
116
116
}
117
117
118
118
try {
Original file line number Diff line number Diff line change 1
- import { captureException , flush , logger , objectify } from '@sentry/core' ;
1
+ import { captureException , flush , debug , objectify } from '@sentry/core' ;
2
2
import type { RequestEvent } from '@sveltejs/kit' ;
3
3
import { DEBUG_BUILD } from '../common/debug-build' ;
4
4
import { isHttpError , isRedirect } from '../common/utils' ;
@@ -26,11 +26,11 @@ export async function flushIfServerless(): Promise<void> {
26
26
27
27
if ( ! platformSupportsStreaming ) {
28
28
try {
29
- DEBUG_BUILD && logger . log ( 'Flushing events...' ) ;
29
+ DEBUG_BUILD && debug . log ( 'Flushing events...' ) ;
30
30
await flush ( 2000 ) ;
31
- DEBUG_BUILD && logger . log ( 'Done flushing events' ) ;
31
+ DEBUG_BUILD && debug . log ( 'Done flushing events' ) ;
32
32
} catch ( e ) {
33
- DEBUG_BUILD && logger . log ( 'Error while flushing events:\n' , e ) ;
33
+ DEBUG_BUILD && debug . log ( 'Error while flushing events:\n' , e ) ;
34
34
}
35
35
}
36
36
}
You can’t perform that action at this time.
0 commit comments