From 111ba96cfec2ce5033a6127ff2f4b5cf00153242 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20S=C3=A1?= Date: Fri, 8 Oct 2021 21:28:52 +0100 Subject: [PATCH] fix: don't exit on uncaught exceptions --- lib/logger.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/logger.js b/lib/logger.js index 78818ada..5b21e3c1 100644 --- a/lib/logger.js +++ b/lib/logger.js @@ -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 = {