diff --git a/app.js b/app.js index 8f84a02..628f463 100644 --- a/app.js +++ b/app.js @@ -387,4 +387,7 @@ if (config.usessl) { server.listen(config.port, function () { logger.info('HTTP Server listening at port %d', config.port); }); -} \ No newline at end of file +} +process.on('uncaughtException', function (err) { + logger.error(err); +}); \ No newline at end of file