Skip to content

Commit 57f1ad7

Browse files
committed
Enable LogBox logs under ENV config
1 parent 223a69b commit 57f1ad7

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/app.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ if (ENV.SENTRY_ORGANIZATION_SLUG.includes('SENTRY_ORGANIZATION')) {
5353
}
5454

5555
// Uncomment the next line to remove popup warning/error boxes.
56-
// LogBox.ignoreAllLogs()
56+
if (!ENV.DEBUG_LOGBOX) LogBox.ignoreAllLogs()
5757
LogBox.ignoreLogs([
5858
'Require cycle:',
5959
'Attempted to end a Span which has already ended.'

src/envConfig.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -422,6 +422,7 @@ export const asEnvConfig = asObject({
422422
DEBUG_PLUGINS: asOptional(asBoolean, false),
423423
DEBUG_ACCOUNTBASED: asOptional(asBoolean, false),
424424
DEBUG_EXCHANGES: asOptional(asBoolean, false),
425+
DEBUG_LOGBOX: asOptional(asBoolean, true),
425426
DEBUG_VERBOSE_ERRORS: asOptional(asBoolean, false),
426427
DEBUG_THEME: asOptional(asBoolean, false),
427428
MUTE_CONSOLE_OUTPUT: asOptional(

0 commit comments

Comments
 (0)