Skip to content

Commit f38f3b1

Browse files
chore: Silence launchDarkly, sentry console logs (#3832)
1 parent d523ddd commit f38f3b1

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/sentry.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ export const setupSentry = ({
133133

134134
Sentry.init({
135135
dsn: config.SENTRY_DSN,
136-
debug: config.NODE_ENV !== 'production',
136+
debug: config.SENTRY_ENVIRONMENT !== 'production',
137137
environment: config.SENTRY_ENVIRONMENT,
138138
integrations: [
139139
// Adds Sentry Replay

src/shared/featureFlags/featureFlag.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
/* eslint-disable no-restricted-imports */
22
import * as Sentry from '@sentry/react'
33
import {
4+
basicLogger,
45
useLDClient,
56
useFlags as useLDFlags,
67
withLDProvider,
@@ -20,6 +21,7 @@ export const withFeatureFlagProvider = (Component: React.ComponentType) => {
2021
// Add in Sentry error handling for LaunchDarkly flags
2122
Sentry.buildLaunchDarklyFlagUsedHandler(),
2223
],
24+
logger: basicLogger({ level: 'error' }),
2325
},
2426
})(Component)
2527
}

0 commit comments

Comments
 (0)