From 29643c76090650b4075c2bc5b15c8ee5e638b0dd Mon Sep 17 00:00:00 2001 From: Justin Wind Date: Sat, 15 Jan 2022 15:25:35 -0800 Subject: [PATCH] show config errors on startup --- server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.js b/server.js index 0055dae..cef54a9 100644 --- a/server.js +++ b/server.js @@ -32,6 +32,6 @@ const ADDR = process.env.LISTEN_ADDR || '127.0.0.1'; logger.info(_scope, 'server started', { version, listenAddress: ADDR, listenPort: PORT }); }); } catch (e) { - logger.error(_scope, 'error starting server', e); + (logger || console).error(_scope, 'error starting server', e); } })(); \ No newline at end of file -- 2.45.2