mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
disable sentry error handler
This commit is contained in:
parent
fd6223ee93
commit
ecd6a2922f
2 changed files with 2 additions and 2 deletions
|
|
@ -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')
|
||||
},
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue