diff --git a/CHANGELOG.md b/CHANGELOG.md index b833d3923e1..3b6bf79791f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ ## Unreleased (develop) +- added: Logbox disable option to env.json + ## 4.49.0 (staging) - added: Honor `af` affiliate parameter on `deep.edge.app` deep links, activating the promotion alongside any inner payload (e.g. private-key import). diff --git a/eslint.config.mjs b/eslint.config.mjs index 4ed016e51dd..7ea88a388d2 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -107,7 +107,7 @@ export default [ 'src/actions/WalletListActions.tsx', 'src/actions/WalletListMenuActions.tsx', - 'src/app.ts', + 'src/components/buttons/ButtonsView.tsx', 'src/components/buttons/EdgeSwitch.tsx', 'src/components/buttons/IconButton.tsx', diff --git a/src/app.ts b/src/app.ts index 005681c2ce0..9c834099c68 100644 --- a/src/app.ts +++ b/src/app.ts @@ -57,12 +57,15 @@ if (ENV.SENTRY_ORGANIZATION_SLUG.includes('SENTRY_ORGANIZATION')) { }) } -// Uncomment the next line to remove popup warning/error boxes. -// LogBox.ignoreAllLogs() -LogBox.ignoreLogs([ - 'Require cycle:', - 'Attempted to end a Span which has already ended.' -]) +// Set ENV.LOGBOX_DISABLE to remove popup warning/error boxes. +if (ENV.LOGBOX_DISABLE) { + LogBox.ignoreAllLogs() +} else { + LogBox.ignoreLogs([ + 'Require cycle:', + 'Attempted to end a Span which has already ended.' + ]) +} // Mute specific console output types. // Useful for debugging using console output, i.e. mute everything but `debug` diff --git a/src/envConfig.ts b/src/envConfig.ts index bec163c45c2..149d1383f28 100644 --- a/src/envConfig.ts +++ b/src/envConfig.ts @@ -558,5 +558,6 @@ export const asEnvConfig = asObject({ overrideThemeFile: '/Users/username/Documents/overrideTheme.json' } ), - EXPERIMENT_CONFIG_OVERRIDE: asOptional(asObject(asString), {}) + EXPERIMENT_CONFIG_OVERRIDE: asOptional(asObject(asString), {}), + LOGBOX_DISABLE: asOptional(asBoolean, false) }).withRest