Skip to content

Commit

Permalink
sentry: Add ignore errors to sentry configuration.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
akashnimare committed Sep 24, 2018
1 parent 1ea8aea commit c1af019
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/renderer/js/utils/sentry-util.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
});
}
Expand Down

0 comments on commit c1af019

Please sign in to comment.