mirror of https://github.com/status-im/codimd.git
Server using logger to log uncaughtException
This commit is contained in:
parent
556338a9c6
commit
0292bfce5b
5
app.js
5
app.js
|
@ -387,4 +387,7 @@ if (config.usessl) {
|
||||||
server.listen(config.port, function () {
|
server.listen(config.port, function () {
|
||||||
logger.info('HTTP Server listening at port %d', config.port);
|
logger.info('HTTP Server listening at port %d', config.port);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
process.on('uncaughtException', function (err) {
|
||||||
|
logger.error(err);
|
||||||
|
});
|
Loading…
Reference in New Issue