mirror of
https://github.com/bitinflow/server.git
synced 2026-03-13 13:35:53 +00:00
continue to handle uncaught exception until exit
This commit is contained in:
@@ -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);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user