From 11bb6abb5180dcce2f692ce2766013116463de11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Fri, 22 May 2020 15:02:23 -0400 Subject: [PATCH] fix: show stack trace on startup errors --- src/start.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/start.js b/src/start.js index f103aed7be..192130f1c6 100644 --- a/src/start.js +++ b/src/start.js @@ -59,7 +59,7 @@ start.start = async function () { winston.error(' ./nodebb upgrade'); break; default: - winston.error(err); + winston.error(err.stack); break; } @@ -153,7 +153,7 @@ async function shutdown(code) { winston.info('[app] Shutdown complete.'); process.exit(code || 0); } catch (err) { - winston.error(err); + winston.error(err.stack); return process.exit(code || 0); } }