File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -133,7 +133,7 @@ export const setupSentry = ({
133
133
134
134
Sentry . init ( {
135
135
dsn : config . SENTRY_DSN ,
136
- debug : config . NODE_ENV !== 'production' ,
136
+ debug : config . SENTRY_ENVIRONMENT !== 'production' ,
137
137
environment : config . SENTRY_ENVIRONMENT ,
138
138
integrations : [
139
139
// Adds Sentry Replay
Original file line number Diff line number Diff line change 1
1
/* eslint-disable no-restricted-imports */
2
2
import * as Sentry from '@sentry/react'
3
3
import {
4
+ basicLogger ,
4
5
useLDClient ,
5
6
useFlags as useLDFlags ,
6
7
withLDProvider ,
@@ -20,6 +21,7 @@ export const withFeatureFlagProvider = (Component: React.ComponentType) => {
20
21
// Add in Sentry error handling for LaunchDarkly flags
21
22
Sentry . buildLaunchDarklyFlagUsedHandler ( ) ,
22
23
] ,
24
+ logger : basicLogger ( { level : 'error' } ) ,
23
25
} ,
24
26
} ) ( Component )
25
27
}
You can’t perform that action at this time.
0 commit comments