Stack traces on uncaught exceptions
authorDarren <darren@darrenwhitlen.com>
Tue, 11 Dec 2012 12:20:48 +0000 (12:20 +0000)
committerDarren <darren@darrenwhitlen.com>
Tue, 11 Dec 2012 12:20:48 +0000 (12:20 +0000)
server/kiwi.js

index 36c2c5bd1de5cc5cad4d453990d6f075055519b9..1361071e396b50a6b80e04a05deb35d15a3ba997 100755 (executable)
@@ -164,6 +164,7 @@ function setProcessUid() {
 // Make sure Kiwi doesn't simply quit on an exception
 process.on('uncaughtException', function (e) {
     console.log('[Uncaught exception] ' + e);
+    console.log(e.stack);
 });