File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change 11/* @flow strict-local */
2- import * as Sentry from '@sentry/react-native' ;
32import type { UrlParams } from '../utils/url' ;
43import type { Auth } from './transportTypes' ;
54import { getAuthHeaders } from './transport' ;
@@ -80,15 +79,13 @@ export const apiCall = async (
8079 }
8180
8281 const callData = { ...getCallData ( ) , method : params . method } ;
83- const logData = {
82+ // eslint-disable-next-line no-console
83+ console . log ( {
8484 call : callData ,
8585 route : params . route ,
8686 httpStatus : response . status ,
8787 json,
88- } ;
89- // eslint-disable-next-line no-console
90- console . log ( logData ) ;
91- Sentry . addBreadcrumb ( { category : 'api failure' , level : 'info' , data : logData } ) ;
88+ } ) ;
9289 throw makeErrorFromApi ( callData , response . status , json ) ;
9390 } finally {
9491 networkActivityStop ( isSilent ) ;
You can’t perform that action at this time.
0 commit comments