We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
isDebug
1 parent e93abe2 commit 5913937Copy full SHA for 5913937
packages/nuxt/src/runtime/utils.ts
@@ -88,15 +88,12 @@ export function reportNuxtError(options: {
88
}
89
90
async function flushWithTimeout(): Promise<void> {
91
- const sentryClient = getClient();
92
- const isDebug = sentryClient ? sentryClient.getOptions().debug : false;
93
-
94
try {
95
- isDebug && logger.log('Flushing events...');
+ logger.log('Flushing events...');
96
await flush(2000);
97
- isDebug && logger.log('Done flushing events');
+ logger.log('Done flushing events');
98
} catch (e) {
99
- isDebug && logger.log('Error while flushing events:\n', e);
+ logger.log('Error while flushing events:\n', e);
100
101
102
0 commit comments