Skip to content

Commit 5913937

Browse files
committed
delete isDebug
1 parent e93abe2 commit 5913937

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

packages/nuxt/src/runtime/utils.ts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -88,15 +88,12 @@ export function reportNuxtError(options: {
8888
}
8989

9090
async function flushWithTimeout(): Promise<void> {
91-
const sentryClient = getClient();
92-
const isDebug = sentryClient ? sentryClient.getOptions().debug : false;
93-
9491
try {
95-
isDebug && logger.log('Flushing events...');
92+
logger.log('Flushing events...');
9693
await flush(2000);
97-
isDebug && logger.log('Done flushing events');
94+
logger.log('Done flushing events');
9895
} catch (e) {
99-
isDebug && logger.log('Error while flushing events:\n', e);
96+
logger.log('Error while flushing events:\n', e);
10097
}
10198
}
10299

0 commit comments

Comments
 (0)