disable sentry error handler

This commit is contained in:
Hongbo Wu 2023-07-25 22:32:00 +08:00
parent fd6223ee93
commit ecd6a2922f
2 changed files with 2 additions and 2 deletions

View file

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

View file

@ -171,7 +171,7 @@ export const createApp = (): {
})
// The error handler must be before any other error middleware and after all routes
app.use(Sentry.Handlers.errorHandler())
// app.use(Sentry.Handlers.errorHandler())
const apollo = makeApolloServer()
const httpServer = createServer(app)