Skip to content

Commit

Permalink
[Sentry] Remove DSN - don’t want errors from OSS
Browse files Browse the repository at this point in the history
  • Loading branch information
bengotow committed Jul 28, 2017
1 parent ac5dd64 commit 8d700e7
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ const Raven = require('raven');

let app;

const sentryDSN = null; // "https://XXX:[email protected]/XXX";

class ErrorReporter {

constructor(modes) {
Expand Down Expand Up @@ -76,6 +78,9 @@ class ErrorReporter {
}

for (const obj of captureObjects) {
if (!sentryDSN) {
return;
}
Raven.captureException(err, Object.assign(errData, obj))
}
}
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 8d700e7

Please sign in to comment.