From 0e6b4e8b45b7899ed4133dffc8006b0bb12e19f6 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Tue, 30 Apr 2024 12:37:27 -0500 Subject: [PATCH] sentryMiddleware: ignore HTTPException errors --- src/app.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app.ts b/src/app.ts index 7e74f6d..6143b6c 100644 --- a/src/app.ts +++ b/src/app.ts @@ -103,7 +103,7 @@ const app = new Hono(); if (Conf.sentryDsn) { // @ts-ignore Mismatched hono types. - app.use('*', sentryMiddleware({ dsn: Conf.sentryDsn })); + app.use('*', sentryMiddleware({ dsn: Conf.sentryDsn, ignoreErrors: 'HTTPException' })); } const debug = Debug('ditto:http');