From: Justin Wind Date: Sat, 15 Jan 2022 23:25:35 +0000 (-0800) Subject: show config errors on startup X-Git-Tag: v1.3.4^2~3 X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=29643c76090650b4075c2bc5b15c8ee5e638b0dd;p=websub-hub show config errors on startup --- 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