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 11import type { Span } from '@sentry/core' ;
22import {
33 continueTrace ,
4+ debug ,
45 getCurrentScope ,
56 getDefaultIsolationScope ,
67 getIsolationScope ,
78 getTraceMetaTags ,
8- logger ,
99 SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN ,
1010 SEMANTIC_ATTRIBUTE_SENTRY_SOURCE ,
1111 setHttpStatus ,
@@ -112,7 +112,7 @@ async function instrumentHandle(
112112 if ( getIsolationScope ( ) !== getDefaultIsolationScope ( ) ) {
113113 getIsolationScope ( ) . setTransactionName ( routeName ) ;
114114 } 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' ) ;
116116 }
117117
118118 try {
Original file line number Diff line number Diff line change 1- import { captureException , flush , logger , objectify } from '@sentry/core' ;
1+ import { captureException , debug , flush , objectify } from '@sentry/core' ;
22import type { RequestEvent } from '@sveltejs/kit' ;
33import { DEBUG_BUILD } from '../common/debug-build' ;
44import { isHttpError , isRedirect } from '../common/utils' ;
@@ -26,11 +26,11 @@ export async function flushIfServerless(): Promise<void> {
2626
2727 if ( ! platformSupportsStreaming ) {
2828 try {
29- DEBUG_BUILD && logger . log ( 'Flushing events...' ) ;
29+ DEBUG_BUILD && debug . log ( 'Flushing events...' ) ;
3030 await flush ( 2000 ) ;
31- DEBUG_BUILD && logger . log ( 'Done flushing events' ) ;
31+ DEBUG_BUILD && debug . log ( 'Done flushing events' ) ;
3232 } catch ( e ) {
33- DEBUG_BUILD && logger . log ( 'Error while flushing events:\n' , e ) ;
33+ DEBUG_BUILD && debug . log ( 'Error while flushing events:\n' , e ) ;
3434 }
3535 }
3636}
You can’t perform that action at this time.
0 commit comments