feat(api): add more captureExceptions

This commit is contained in:
Gergő Móricz 2024-08-22 15:49:16 +02:00
parent 0e8fd6ce70
commit 5ca36fe9fc

View File

@ -119,6 +119,7 @@ if (cluster.isMaster) {
waitingJobs, waitingJobs,
}); });
} catch (error) { } catch (error) {
Sentry.captureException(error);
Logger.error(error); Logger.error(error);
return res.status(500).json({ error: error.message }); return res.status(500).json({ error: error.message });
} }
@ -170,6 +171,7 @@ if (cluster.isMaster) {
}, timeout); }, timeout);
} }
} catch (error) { } catch (error) {
Sentry.captureException(error);
Logger.debug(error); Logger.debug(error);
} }
}; };