From 5ca36fe9fcf6e18acfb42150a2110f2f1b3c722d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gerg=C5=91=20M=C3=B3ricz?= Date: Thu, 22 Aug 2024 15:49:16 +0200 Subject: [PATCH] feat(api): add more captureExceptions --- apps/api/src/index.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/api/src/index.ts b/apps/api/src/index.ts index 6a6437b3..0674a46f 100644 --- a/apps/api/src/index.ts +++ b/apps/api/src/index.ts @@ -119,6 +119,7 @@ if (cluster.isMaster) { waitingJobs, }); } catch (error) { + Sentry.captureException(error); Logger.error(error); return res.status(500).json({ error: error.message }); } @@ -170,6 +171,7 @@ if (cluster.isMaster) { }, timeout); } } catch (error) { + Sentry.captureException(error); Logger.debug(error); } };