mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 11:29:46 +00:00
sentryMiddleware: ignore HTTPException errors
This commit is contained in:
parent
d1b2e26abf
commit
0e6b4e8b45
1 changed files with 1 additions and 1 deletions
|
|
@ -103,7 +103,7 @@ const app = new Hono<AppEnv>();
|
||||||
|
|
||||||
if (Conf.sentryDsn) {
|
if (Conf.sentryDsn) {
|
||||||
// @ts-ignore Mismatched hono types.
|
// @ts-ignore Mismatched hono types.
|
||||||
app.use('*', sentryMiddleware({ dsn: Conf.sentryDsn }));
|
app.use('*', sentryMiddleware({ dsn: Conf.sentryDsn, ignoreErrors: 'HTTPException' }));
|
||||||
}
|
}
|
||||||
|
|
||||||
const debug = Debug('ditto:http');
|
const debug = Debug('ditto:http');
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue