Skip to content

Commit fb24586

Browse files
committed
use logger
1 parent b4a31db commit fb24586

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

packages/nuxt/src/runtime/utils.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type { ClientOptions, Context } from '@sentry/core';
2-
import { consoleSandbox } from '@sentry/core';
2+
import { logger } from '@sentry/core';
33
import { captureException, getClient, getTraceMetaTags } from '@sentry/core';
44
import type { VueOptions } from '@sentry/vue/src/types';
55
import type { CapturedErrorContext } from 'nitropack';
@@ -39,10 +39,7 @@ export function addSentryTracingMetaTags(head: NuxtRenderHTMLContext['head'], de
3939

4040
if (metaTags) {
4141
if (debug) {
42-
consoleSandbox(() => {
43-
// eslint-disable-next-line no-console
44-
console.log('[Sentry] Adding Sentry tracing meta tags to HTML page:', metaTags);
45-
});
42+
logger.log('[Sentry] Adding Sentry tracing meta tags to HTML page:', metaTags);
4643
}
4744
head.push(metaTags);
4845
}

0 commit comments

Comments
 (0)