Skip to content

Commit 82ee985

Browse files
committed
ref(sveltekit): Use debug in sveltekit sdk
1 parent ccbf627 commit 82ee985

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

packages/sveltekit/src/server-common/handle.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import type { Span } from '@sentry/core';
22
import {
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 {

packages/sveltekit/src/server-common/utils.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { captureException, flush, logger, objectify } from '@sentry/core';
1+
import { captureException, flush, debug, objectify } from '@sentry/core';
22
import type { RequestEvent } from '@sveltejs/kit';
33
import { DEBUG_BUILD } from '../common/debug-build';
44
import { 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
}

0 commit comments

Comments
 (0)