projects
/
websub-hub
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
11c228c
)
show config errors on startup
author
Justin Wind
<justin.wind+git@gmail.com>
Sat, 15 Jan 2022 23:25:35 +0000
(15:25 -0800)
committer
Justin Wind
<justin.wind+git@gmail.com>
Sat, 15 Jan 2022 23:25:35 +0000
(15:25 -0800)
server.js
patch
|
blob
|
history
diff --git
a/server.js
b/server.js
index 0055daeb2084d4f550312126779f5ae08efdc3a4..cef54a918fbce09797f290bd3a3f8fe49176e577 100644
(file)
--- 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