mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-23 21:38:44 +08:00
refactor(server): dont convert graphql bad request into internal server error (#10203)
This commit is contained in:
@@ -38,9 +38,7 @@ export class GQLLoggerPlugin implements ApolloServerPlugin {
|
||||
},
|
||||
didEncounterErrors: ctx => {
|
||||
ctx.errors.forEach(gqlErr => {
|
||||
const error = mapAnyError(
|
||||
gqlErr.originalError ? gqlErr.originalError : gqlErr
|
||||
);
|
||||
const error = mapAnyError(gqlErr);
|
||||
error.log('GraphQL');
|
||||
|
||||
metrics.gql.counter('query_error_counter').add(1, {
|
||||
|
||||
Reference in New Issue
Block a user