fix: don't exit on uncaught exceptions

This commit is contained in:
André Sá 2021-10-08 21:28:52 +01:00
parent 21bdf5f60a
commit 111ba96cfe

View file

@ -20,7 +20,8 @@ const logger = new winston.Logger({
],
rewriters: [
(...[,, meta]) => meta instanceof Error ? { message: meta.message, stack: meta.stack } : meta
]
],
exitOnError: false
})
logger.stream = {