Skip to content

Commit 3f17e34

Browse files
committed
api: Stop marking failure with breadcrumbs.
All of this data is now available in other ways; this breadcrumb is entirely redundant.
1 parent f14966c commit 3f17e34

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

src/api/apiFetch.js

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
/* @flow strict-local */
2-
import * as Sentry from '@sentry/react-native';
32
import type { UrlParams } from '../utils/url';
43
import type { Auth } from './transportTypes';
54
import { 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);

0 commit comments

Comments
 (0)