Skip to content

Instantly share code, notes, and snippets.

@calvinfo
Last active August 29, 2015 14:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save calvinfo/f15c46f8d1ca450569a1 to your computer and use it in GitHub Desktop.
Save calvinfo/f15c46f8d1ca450569a1 to your computer and use it in GitHub Desktop.
/**
* Set up our uncaught exception handler
**/
process.on('uncaughtException', function(err){
log.critical('uncaught', err);
setTimeout(function(){
// cleanup...
}, 1000);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment