mirror of
https://github.com/aljazceru/ditto.git
synced 2025-12-26 09:44:25 +01:00
sentryMiddleware: ignore HTTPException errors
This commit is contained in:
@@ -103,7 +103,7 @@ const app = new Hono<AppEnv>();
|
||||
|
||||
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');
|
||||
|
||||
Reference in New Issue
Block a user