Last active
August 29, 2015 14:17
-
-
Save calvinfo/f15c46f8d1ca450569a1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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