Skip to content
This repository has been archived by the owner on Jun 2, 2024. It is now read-only.

Commit

Permalink
Merge pull request #405 from cnpm/master-uncaughtException
Browse files Browse the repository at this point in the history
handle master uncaughtException. fixed #403
  • Loading branch information
dead-horse committed Aug 4, 2014
2 parents 7b77f09 + 758d1d4 commit b5d5859
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions dispatch.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});

0 comments on commit b5d5859

Please sign in to comment.