don't exit on uncaught exception

This commit is contained in:
Roman Shtylman
2014-12-05 16:22:16 -08:00
parent d1496f15c6
commit 6235436a71

View File

@@ -6,8 +6,7 @@ log.use(require('book-git')(__dirname));
log.use(require('book-raven')(process.env.SENTRY_DSN));
process.on('uncaughtException', function(err) {
log.panic(err);
setTimeout(process.exit.bind(process, 1), 2000);
log.error(err);
});
module.exports = log;