mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-09-21 15:56:10 +08:00
fix(sentry): No longer flood sentry with errors sent while running with --dev
This commit is contained in:
parent
16cd75a933
commit
e42c649e54
|
@ -21,6 +21,7 @@ module.exports = ErrorReporter = (function() {
|
|||
// or renderer process
|
||||
if (process.type === 'renderer') {
|
||||
this.spec = atom.inSpecMode();
|
||||
this.dev = atom.inDevMode();
|
||||
|
||||
atom.onDidThrowError(function(_arg) {
|
||||
return self.reportError(_arg.originalError, {
|
||||
|
@ -57,7 +58,9 @@ module.exports = ErrorReporter = (function() {
|
|||
if (this.spec) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (this.dev) {
|
||||
return;
|
||||
}
|
||||
return this.client.captureError(err, {
|
||||
extra: metadata,
|
||||
tags: {
|
||||
|
|
Loading…
Reference in a new issue