Skip to content

Commit 4e96f74

Browse files
committed
Remove usage of logger from nuxt-3 e2e test app
1 parent 4a6e552 commit 4e96f74

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

dev-packages/e2e-tests/test-applications/nuxt-3/server/plugins/customNitroErrorHandler.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Context, GLOBAL_OBJ, flush, logger, vercelWaitUntil } from '@sentry/core';
1+
import { Context, GLOBAL_OBJ, flush, debug, vercelWaitUntil } from '@sentry/core';
22
import * as SentryNode from '@sentry/node';
33
import { H3Error } from 'h3';
44
import type { CapturedErrorContext } from 'nitropack';
@@ -74,10 +74,10 @@ async function flushWithTimeout(): Promise<void> {
7474
const isDebug = sentryClient ? sentryClient.getOptions().debug : false;
7575

7676
try {
77-
isDebug && logger.log('Flushing events...');
77+
isDebug && debug.log('Flushing events...');
7878
await flush(2000);
79-
isDebug && logger.log('Done flushing events');
79+
isDebug && debug.log('Done flushing events');
8080
} catch (e) {
81-
isDebug && logger.log('Error while flushing events:\n', e);
81+
isDebug && debug.log('Error while flushing events:\n', e);
8282
}
8383
}

0 commit comments

Comments
 (0)