Disable sentry in dev (#2128)
parent
80ada4d20a
commit
a0b9fd799b
|
@ -40,7 +40,7 @@ init({
|
|||
autoSessionTracking: false,
|
||||
dsn: 'https://05bc3789bf994b81bd7ce20c86ccd3ae@o4505071687041024.ingest.sentry.io/4505071690514432',
|
||||
debug: false, // If `true`, Sentry will try to print out useful debugging information if something goes wrong with sending the event. Set it to `false` in production
|
||||
enableInExpoDevelopment: true,
|
||||
enableInExpoDevelopment: false, // enable this to test in dev
|
||||
environment: buildChannel,
|
||||
dist,
|
||||
release,
|
||||
|
|
|
@ -323,10 +323,10 @@ export const logger = new Logger()
|
|||
if (env.IS_DEV && !env.IS_TEST) {
|
||||
logger.addTransport(consoleTransport)
|
||||
|
||||
/**
|
||||
/*
|
||||
* Comment this out to disable Sentry transport in dev
|
||||
*/
|
||||
logger.addTransport(sentryTransport)
|
||||
// logger.addTransport(sentryTransport)
|
||||
} else if (env.IS_PROD) {
|
||||
logger.addTransport(sentryTransport)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue