Disable sentry in dev (#2128)

zio/stable
Eric Bailey 2023-12-07 09:46:33 -06:00 committed by GitHub
parent 80ada4d20a
commit a0b9fd799b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -40,7 +40,7 @@ init({
autoSessionTracking: false, autoSessionTracking: false,
dsn: 'https://05bc3789bf994b81bd7ce20c86ccd3ae@o4505071687041024.ingest.sentry.io/4505071690514432', 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 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, environment: buildChannel,
dist, dist,
release, release,

View File

@ -323,10 +323,10 @@ export const logger = new Logger()
if (env.IS_DEV && !env.IS_TEST) { if (env.IS_DEV && !env.IS_TEST) {
logger.addTransport(consoleTransport) logger.addTransport(consoleTransport)
/** /*
* Comment this out to disable Sentry transport in dev * Comment this out to disable Sentry transport in dev
*/ */
logger.addTransport(sentryTransport) // logger.addTransport(sentryTransport)
} else if (env.IS_PROD) { } else if (env.IS_PROD) {
logger.addTransport(sentryTransport) logger.addTransport(sentryTransport)
} }