This commit is contained in:
Milo Schwartz 2024-09-29 14:37:26 -04:00
parent 8a009f7fbc
commit 5f768f1855
No known key found for this signature in database
9 changed files with 32 additions and 52 deletions

View file

@ -72,13 +72,13 @@ const logger = winston.createLogger({
transports,
});
process.on("uncaughtException", (error) => {
logger.error("Uncaught Exception:", { error, stack: error.stack });
process.exit(1);
});
process.on("unhandledRejection", (reason, _) => {
logger.error("Unhandled Rejection:", { reason });
});
// process.on("uncaughtException", (error) => {
// logger.error("Uncaught Exception:", { error, stack: error.stack });
// process.exit(1);
// });
//
// process.on("unhandledRejection", (reason, _) => {
// logger.error("Unhandled Rejection:", { reason });
// });
export default logger;