Permalink
Browse files

Merge pull request #15 from jtlebi/master

Last chance error handler
  • Loading branch information...
pkrumins committed Mar 3, 2012
2 parents 6fa4ce5 + e9b74b4 commit c4f25cb968cdced4773177ce7c0c5a9375048ec9
Showing with 3 additions and 2 deletions.
  1. +3 −2 proxy.js
View
@@ -343,9 +343,10 @@ function server_cb(request, response) {
//it catch the exception preventing the application from crashing.
//I recommend to comment it in a development environment as it
//"Hides" very interesting bits of debugging informations.
-/*process.on('uncaughtException', function (err) {
+process.on('uncaughtException', function (err) {
console.log('LAST ERROR: Caught exception: ' + err);
-});*/
+ util.log(err.stack);
+});
//startup + log
update_blacklist();

0 comments on commit c4f25cb

Please sign in to comment.