mirror of
https://github.com/bitinflow/server.git
synced 2026-11-01 05:09:10 +00:00
continue to handle uncaught exception until exit
This commit is contained in:
1 parent
a260585d56
commit
ac1fbc740e
1 file changed
+1
-1
@@ -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