Disable Sentry in development (#9095)

In a non-production environment, Sentry was configured to send error
reports to a "test" MetaMask project. It will still do this during e2e
tests, but in development Sentry is now disabled completely.

In practice this was never useful in development.
feature/default_network_editable
Mark Stacey 4 years ago committed by GitHub
parent 8a7c8e8aeb
commit 869c252088
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      app/scripts/lib/setupSentry.js

@ -72,7 +72,9 @@ export const SENTRY_STATE = {
export default function setupSentry ({ release, getState }) { export default function setupSentry ({ release, getState }) {
let sentryTarget let sentryTarget
if (METAMASK_DEBUG || process.env.IN_TEST) { if (METAMASK_DEBUG) {
return
} else if (process.env.IN_TEST) {
console.log(`Setting up Sentry Remote Error Reporting for '${METAMASK_ENVIRONMENT}': SENTRY_DSN_DEV`) console.log(`Setting up Sentry Remote Error Reporting for '${METAMASK_ENVIRONMENT}': SENTRY_DSN_DEV`)
sentryTarget = SENTRY_DSN_DEV sentryTarget = SENTRY_DSN_DEV
} else { } else {

Loading…
Cancel
Save