Full send Sentry (#2018)
* Update build profiles, sentry config * Enable sentry * Ok actually enable in dev * Remove debug * Add TF build * Fix typo * Remove debug * Remove unecessary config * Fix typo * Set env in Expo * Remove scripts * Clarify * Replace invalid character * Align on release/dist * Add build version * Just use package version * Align dist
This commit is contained in:
parent
b778017000
commit
6f7032d42b
5 changed files with 86 additions and 35 deletions
|
@ -288,16 +288,13 @@ export class Logger {
|
|||
*/
|
||||
export const logger = new Logger()
|
||||
|
||||
/**
|
||||
* Report to console in dev, Sentry in prod, nothing in test.
|
||||
*/
|
||||
if (env.IS_DEV && !env.IS_TEST) {
|
||||
logger.addTransport(consoleTransport)
|
||||
|
||||
/**
|
||||
* Uncomment this to test Sentry in dev
|
||||
* Comment this out to disable Sentry transport in dev
|
||||
*/
|
||||
// logger.addTransport(sentryTransport);
|
||||
logger.addTransport(sentryTransport)
|
||||
} else if (env.IS_PROD) {
|
||||
// logger.addTransport(sentryTransport)
|
||||
logger.addTransport(sentryTransport)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue