continue to handle uncaught exception until exit

This commit is contained in:
Roman Shtylman
2013-11-10 00:19:00 -05:00
parent a260585d56
commit ac1fbc740e

View File

@@ -5,7 +5,7 @@ require('superstack');
log.use(require('book-git')(__dirname));
log.use(require('book-raven')(process.env.SENTRY_DSN));
process.once('uncaughtException', function(err) {
process.on('uncaughtException', function(err) {
log.panic(err);
setTimeout(process.exit.bind(process, 1), 2000);
});