Disable sentry in dev

This commit is contained in:
Eric Bailey
2023-12-07 09:11:56 -06:00
parent 80ada4d20a
commit d76716f3ef
2 changed files with 3 additions and 3 deletions
+1 -1
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,
+2 -2
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)
} }