From c10ce5c679a7a0e190c58203ca5a69e5d365b362 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Wed, 20 Oct 2021 11:46:02 +0200 Subject: [PATCH] web: disable Sentry.showReportDialog Signed-off-by: Jens Langhammer --- web/src/api/Sentry.ts | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/web/src/api/Sentry.ts b/web/src/api/Sentry.ts index 4609fb9e88..c8890f19e2 100644 --- a/web/src/api/Sentry.ts +++ b/web/src/api/Sentry.ts @@ -38,17 +38,6 @@ export function configureSentry(canDoPpi: boolean = false): Promise { if (hint.originalException instanceof Response || hint.originalException instanceof DOMException) { return null; } - if (event.exception) { - me().then(user => { - Sentry.showReportDialog({ - eventId: event.event_id, - user: { - email: user.user.email, - name: user.user.name, - } - }); - }); - } return event; }, }); @@ -58,12 +47,13 @@ export function configureSentry(canDoPpi: boolean = false): Promise { const intf = window.location.pathname.replace(/.+if\/(.+)\//, "$1"); Sentry.setTag(TAG_SENTRY_COMPONENT, `web/${intf}`); } - console.debug("authentik/config: Sentry enabled."); if (config.errorReportingSendPii && canDoPpi) { me().then(user => { Sentry.setUser({ email: user.user.email }); console.debug("authentik/config: Sentry with PII enabled."); }); + } else { + console.debug("authentik/config: Sentry enabled."); } } return config;