Add debug logging for GQL errors

This commit is contained in:
Jackson Harper 2022-04-10 20:53:09 -07:00
parent 952c137507
commit d05f091876

View file

@ -115,6 +115,7 @@ export function makeApolloServer(): ApolloServer {
schema: schema,
context: contextFunc,
formatError: (err) => {
console.log('server error', err)
Sentry.captureException(err)
// hide error messages from frontend on prod
return new Error('Unexpected server error')