diff --git a/packages/sveltekit/src/server-common/handle.ts b/packages/sveltekit/src/server-common/handle.ts index 24ab005500de..aa2649a28a3a 100644 --- a/packages/sveltekit/src/server-common/handle.ts +++ b/packages/sveltekit/src/server-common/handle.ts @@ -1,11 +1,11 @@ import type { Span } from '@sentry/core'; import { continueTrace, + debug, getCurrentScope, getDefaultIsolationScope, getIsolationScope, getTraceMetaTags, - logger, SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN, SEMANTIC_ATTRIBUTE_SENTRY_SOURCE, setHttpStatus, @@ -112,7 +112,7 @@ async function instrumentHandle( if (getIsolationScope() !== getDefaultIsolationScope()) { getIsolationScope().setTransactionName(routeName); } else { - DEBUG_BUILD && logger.warn('Isolation scope is default isolation scope - skipping setting transactionName'); + DEBUG_BUILD && debug.warn('Isolation scope is default isolation scope - skipping setting transactionName'); } try { diff --git a/packages/sveltekit/src/server-common/utils.ts b/packages/sveltekit/src/server-common/utils.ts index 6f83615541f8..34e1575a70ea 100644 --- a/packages/sveltekit/src/server-common/utils.ts +++ b/packages/sveltekit/src/server-common/utils.ts @@ -1,4 +1,4 @@ -import { captureException, flush, logger, objectify } from '@sentry/core'; +import { captureException, debug, flush, objectify } from '@sentry/core'; import type { RequestEvent } from '@sveltejs/kit'; import { DEBUG_BUILD } from '../common/debug-build'; import { isHttpError, isRedirect } from '../common/utils'; @@ -26,11 +26,11 @@ export async function flushIfServerless(): Promise { if (!platformSupportsStreaming) { try { - DEBUG_BUILD && logger.log('Flushing events...'); + DEBUG_BUILD && debug.log('Flushing events...'); await flush(2000); - DEBUG_BUILD && logger.log('Done flushing events'); + DEBUG_BUILD && debug.log('Done flushing events'); } catch (e) { - DEBUG_BUILD && logger.log('Error while flushing events:\n', e); + DEBUG_BUILD && debug.log('Error while flushing events:\n', e); } } }