fix: no duplicate sentry error

This commit is contained in:
Nate 2025-11-26 11:46:12 -08:00
parent 63489e9dd6
commit 4ec2b1bcb4

View file

@ -110,19 +110,13 @@ process.on("unhandledRejection", (reason, promise) => {
});
}
// Sentry capture remains the same
sentryService.captureException(
reason instanceof Error ? reason : new Error(String(reason)),
{
promise: String(promise),
},
);
// Note: Sentry capture is handled by logger.error() above
// Don't exit the process, just log the error
});
process.on("uncaughtException", (error) => {
logger.error("Uncaught Exception:", error);
sentryService.captureException(error);
// Note: Sentry capture is handled by logger.error() above
// Don't exit the process, just log the error
});