From 3819d007a5e91e4f257ea5c5502da149c8dac7ca Mon Sep 17 00:00:00 2001 From: Spacelord Date: Tue, 16 May 2023 00:03:54 +0200 Subject: [PATCH] Removed sentry error handler --- src/index.ts | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/index.ts b/src/index.ts index c80b335..c8f9c70 100644 --- a/src/index.ts +++ b/src/index.ts @@ -89,15 +89,6 @@ app.use(routes); // The error handler must be before any other error middleware and after all controllers app.use(Sentry.Handlers.errorHandler()); -// Optional fallthrough error handler -app.use(function onError(err: Error, req: Request, res: Response, next: NextFunction) { - // The error id is attached to `res.sentry` to be returned - // and optionally displayed to the user for support. - res.statusCode = 500; - // @ts-ignore - res.end(res.sentry + '\n'); -}); - app.listen(config.global.http_port, config.global.http_listen_address, () => { log.web.info(`Listening at http://${config.global.http_listen_address}:${config.global.http_port}`); });