Merge branch 'feature/Sentry-Improvements' into test-beta
This commit is contained in:
@@ -1,6 +1,5 @@
|
|||||||
import { onError } from "@apollo/client/link/error";
|
import { onError } from "@apollo/client/link/error";
|
||||||
//https://stackoverflow.com/questions/57163454/refreshing-a-token-with-apollo-client-firebase-auth
|
//https://stackoverflow.com/questions/57163454/refreshing-a-token-with-apollo-client-firebase-auth
|
||||||
import * as Sentry from "@sentry/react";
|
|
||||||
|
|
||||||
const errorLink = onError(
|
const errorLink = onError(
|
||||||
({ graphQLErrors, networkError, operation, forward }) => {
|
({ graphQLErrors, networkError, operation, forward }) => {
|
||||||
@@ -9,7 +8,6 @@ const errorLink = onError(
|
|||||||
console.log(
|
console.log(
|
||||||
`[GraphQL error]: Message: ${message}, Location: ${locations}, Path: ${path}`
|
`[GraphQL error]: Message: ${message}, Location: ${locations}, Path: ${path}`
|
||||||
);
|
);
|
||||||
Sentry.captureException({ message, locations, path });
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
if (networkError)
|
if (networkError)
|
||||||
|
|||||||
Reference in New Issue
Block a user