diff --git a/dispatch.js b/dispatch.js index 115df966c..b58e32cb1 100644 --- a/dispatch.js +++ b/dispatch.js @@ -75,3 +75,8 @@ function forkSyncer() { setTimeout(forkSyncer, 1000); }); } + +process.on('uncaughtException', function (err) { + console.error('[%s] [master:%s] master uncaughtException: %s', Date(), process.pid, err.stack); + console.error(err); +});