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:
parent
8a7c8e8aeb
commit
869c252088
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user