diff --git a/app.js b/app.js index c3c824a6b..bfb9ac7d2 100644 --- a/app.js +++ b/app.js @@ -473,5 +473,8 @@ models.sequelize.sync().then(startListen); // log uncaught exception process.on('uncaughtException', function (err) { + logger.error('An uncaught exception has occured.'); logger.error(err); + logger.error('Process will exit now.'); + process.exit(1); }); \ No newline at end of file