Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/sveltekit/src/server-common/handle.ts
Original file line number Diff line number Diff line change
@@ -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,
Expand Down Expand Up @@ -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 {
Expand Down
8 changes: 4 additions & 4 deletions packages/sveltekit/src/server-common/utils.ts
Original file line number Diff line number Diff line change
@@ -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';
Expand Down Expand Up @@ -26,11 +26,11 @@ export async function flushIfServerless(): Promise<void> {

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);
}
}
}
Expand Down
Loading