From c1af019182331771605d6e6249d998836f15a861 Mon Sep 17 00:00:00 2001 From: Akash Nimare Date: Mon, 24 Sep 2018 16:40:33 +0530 Subject: [PATCH] sentry: Add ignore errors to sentry configuration. We could ignore the validate realm error since it's harmless and we know the reason behind this. It mostly comes from the console logs. This is a temp solution until Sentry supports disabling the console logs. --- app/renderer/js/utils/sentry-util.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/renderer/js/utils/sentry-util.js b/app/renderer/js/utils/sentry-util.js index f67121c9..5857602d 100644 --- a/app/renderer/js/utils/sentry-util.js +++ b/app/renderer/js/utils/sentry-util.js @@ -5,6 +5,10 @@ const sentryInit = () => { if (!isDev) { init({ dsn: 'SENTRY_DSN', + // We should ignore this error since it's harmless and we know the reason behind this + // This error mainly comes from the console logs. + // This is a temp solution until Sentry supports disabling the console logs + ignoreErrors: ['does not appear to be a valid Zulip server'], sendTimeout: 30 // wait 30 seconds before considering the sending capture to have failed, default is 1 second }); }