mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-10-04 10:28:46 +08:00
Update Sentry DSN, skip issues that spam the error reports
This commit is contained in:
parent
1a19b30331
commit
c189263eb9
1 changed files with 7 additions and 1 deletions
|
@ -37,6 +37,12 @@ module.exports = class RavenErrorReporter {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Skip some very noisy issues
|
||||||
|
const str = `${err}`.toLowerCase();
|
||||||
|
if (['resize observer', 'resizeobserver', 'enoent'].includes(str)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
Raven.captureException(err, {
|
Raven.captureException(err, {
|
||||||
extra: extra,
|
extra: extra,
|
||||||
tags: {
|
tags: {
|
||||||
|
@ -49,7 +55,7 @@ module.exports = class RavenErrorReporter {
|
||||||
_setupSentry() {
|
_setupSentry() {
|
||||||
Raven.disableConsoleAlerts();
|
Raven.disableConsoleAlerts();
|
||||||
Raven.config(
|
Raven.config(
|
||||||
'https://18d04acdd03b4389a36ef7d1d39f8025:5cb2e99bd3634856bfb3711461201439@sentry.io/196829',
|
'https://2c54d9a7349ab0fa781878a84744f7fc@o70907.ingest.us.sentry.io/4508712413233152',
|
||||||
{
|
{
|
||||||
name: this.deviceHash,
|
name: this.deviceHash,
|
||||||
release: this.getVersion(),
|
release: this.getVersion(),
|
||||||
|
|
Loading…
Add table
Reference in a new issue