diff --git a/bookrc.js b/bookrc.js index 71d7c7b..b2f760c 100644 --- a/bookrc.js +++ b/bookrc.js @@ -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); });