File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed
apps/browser-extension-wallet
src/lib/scripts/background Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,8 @@ Sentry.init({
8
8
Sentry . browserTracingIntegration ( ) ,
9
9
Sentry . browserProfilingIntegration ( ) ,
10
10
Sentry . replayIntegration ( ) ,
11
- Sentry . captureConsoleIntegration ( { levels : [ 'error' ] } )
11
+ // TODO: re-enable once we've reviewed provider logging
12
+ Sentry . captureConsoleIntegration ( { levels : process . env . SENTRY_ENVIRONMENT === 'production' ? [ ] : [ 'error' ] } )
12
13
] ,
13
14
// Set `tracePropagationTargets` to control for which URLs trace propagation should be enabled
14
15
tracePropagationTargets : [ 'localhost' , 'chrome-extension://gafhhkghbfjjkeiendhlofajokpaflmk' ] ,
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ const handleConnectionIssues = async (error: WebRequest.OnErrorOccurredDetailsTy
46
46
)
47
47
return ;
48
48
49
- logger . error ( 'xmlhttprequest:net::ERR_INTERNET_DISCONNECTED' , error ) ;
49
+ logger . debug ( 'xmlhttprequest:net::ERR_INTERNET_DISCONNECTED' , error ) ;
50
50
51
51
requestMessage$ . next ( { type : MessageTypes . HTTP_CONNECTION , data : { connected : false } } ) ;
52
52
if ( ! webRequest . onCompleted . hasListener ( handleRequests ) ) {
Original file line number Diff line number Diff line change @@ -178,7 +178,7 @@ const fetchTokenPrices = () => {
178
178
coinPrices . tokenPrices$ . next ( { tokens : tokenPrices , status : 'fetched' } ) ;
179
179
} )
180
180
. catch ( ( error ) => {
181
- logger . error ( 'Error fetching coin prices:' , error ) ;
181
+ logger . debug ( 'Error fetching token prices:' , error ) ;
182
182
coinPrices . tokenPrices$ . next ( { ...coinPrices . tokenPrices$ . value , status : 'error' } ) ;
183
183
} ) ;
184
184
} ;
@@ -204,7 +204,7 @@ const fetchAdaPrice = () => {
204
204
} ) ;
205
205
} )
206
206
. catch ( async ( error ) => {
207
- logger . error ( 'Error fetching coin prices:' , error ) ;
207
+ logger . debug ( 'Error fetching coin prices:' , error ) ;
208
208
// If for some reason we couldn't fetch the ada price, get it from background store
209
209
const adaPrice = await getADAPriceFromBackgroundStorage ( ) ;
210
210
if ( ! adaPrice ) return coinPrices . adaPrices$ . next ( { prices : { } , status : 'error' , timestamp : undefined } ) ;
You can’t perform that action at this time.
0 commit comments