Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down
2 changes: 1 addition & 1 deletion eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
15 changes: 9 additions & 6 deletions src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Comment thread
j0ntz marked this conversation as resolved.
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`
Expand Down
3 changes: 2 additions & 1 deletion src/envConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Loading