1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-22 18:00:18 +01:00

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.
This commit is contained in:
Mark Stacey 2020-07-28 16:59:47 -03:00 committed by GitHub
parent 8a7c8e8aeb
commit 869c252088
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -72,7 +72,9 @@ export const SENTRY_STATE = {
export default function setupSentry ({ release, getState }) {
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`)
sentryTarget = SENTRY_DSN_DEV
} else {