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); } };