(sentry) remove unnecessary double console.error

This commit is contained in:
Valentyne Stigloher 2024-03-07 17:02:42 +01:00
parent e87c8739e8
commit 91de9e68d1

View File

@ -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;