Skip to content

Commit

Permalink
fix: capture exceptions with sentry
Browse files Browse the repository at this point in the history
  • Loading branch information
lui7henrique committed Oct 16, 2024
1 parent 64c0f57 commit 6e3eec0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/http/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ app.setErrorHandler((error, _, reply) => {
if (env.NODE_ENV !== 'production') {
console.error(error)
} else {
// TODO: DataDog/NewRelic/Sentry
Sentry.captureException(error)
}

return reply.status(500).send({ message: 'Internal server error.' })
Expand Down

0 comments on commit 6e3eec0

Please sign in to comment.