mirror of
https://github.com/graphql-hive/console
synced 2026-05-23 09:08:34 +00:00
Log all GraphQL errors (#951)
This commit is contained in:
parent
21a135b9d4
commit
28c62fbec1
1 changed files with 4 additions and 4 deletions
|
|
@ -158,10 +158,10 @@ export const graphqlHandler = (options: GraphQLHandlerOptions): RouteHandlerMeth
|
|||
useSentryUser(),
|
||||
useErrorHandler(({ errors, context }): void => {
|
||||
for (const error of errors) {
|
||||
// Only log unexpected errors.
|
||||
if (isGraphQLError(error)) {
|
||||
continue;
|
||||
}
|
||||
// // Only log unexpected errors.
|
||||
// if (isGraphQLError(error)) {
|
||||
// continue;
|
||||
// }
|
||||
|
||||
if (hasFastifyRequest(context)) {
|
||||
context.req.log.error(error);
|
||||
|
|
|
|||
Loading…
Reference in a new issue