-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Sentry] Remove DSN - don’t want errors from OSS
- Loading branch information
Showing
1 changed file
with
8 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,8 @@ const Raven = require('raven'); | |
|
||
let app; | ||
|
||
const sentryDSN = null; // "https://XXX:[email protected]/XXX"; | ||
|
||
class ErrorReporter { | ||
|
||
constructor(modes) { | ||
|
@@ -76,6 +78,9 @@ class ErrorReporter { | |
} | ||
|
||
for (const obj of captureObjects) { | ||
if (!sentryDSN) { | ||
return; | ||
} | ||
Raven.captureException(err, Object.assign(errData, obj)) | ||
} | ||
} | ||
|
@@ -117,8 +122,9 @@ class ErrorReporter { | |
|
||
_setupSentry() { | ||
// Initialize the Sentry connector | ||
const sentryDSN = "https://a556c0165bc74435952c95dccc5938ec:[email protected]/144447" | ||
|
||
if (!sentryDSN) { | ||
return; | ||
} | ||
Raven.disableConsoleAlerts(); | ||
Raven.config(sentryDSN, { | ||
name: this.deviceHash, | ||
|