From 91de9e68d116f5d6640f1de8ecdec034378592b6 Mon Sep 17 00:00:00 2001 From: Valentyne Stigloher Date: Thu, 7 Mar 2024 17:02:42 +0100 Subject: [PATCH] (sentry) remove unnecessary double console.error --- nuxt.config.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/nuxt.config.ts b/nuxt.config.ts index 68eff2858..074adb836 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -226,10 +226,7 @@ const nuxtConfig: NuxtConfig = { telemetry: false, }, config: { - beforeSend(event, hint) { - if (process.env.NODE_ENV === 'development') { - console.error(hint.originalException || hint.syntheticException); - } + beforeSend(event) { // do not send user information as Sentry somehow automatically detects username, email and user id // https://docs.sentry.io/platforms/javascript/data-management/sensitive-data/ delete event.user;