Adding stack trace and crash information to logs when a service crashes

pull/117/merge
Tim Robinson 2015-07-24 10:23:12 +00:00
rodzic 2addd4339f
commit 9738b714ea
2 zmienionych plików z 5 dodań i 1 usunięć

Wyświetl plik

@ -111,6 +111,7 @@
"c9.ide.threewaymerge": "#229382aa0b",
"c9.ide.undo": "#b028bcb4d5",
"c9.ide.upload": "#0bd010d3dc",
"c9.ide.welcome": "#c370b3f191"
"c9.ide.welcome": "#c370b3f191",
"smf.core": "#undefined"
}
}

Wyświetl plik

@ -29,6 +29,9 @@ function plugin(options, imports, register) {
try {
// make sure we close down within 10 seconds
console.error("Uncaught exception. Logging error and shutting down in 10 sec");
console.error("Exception:", err);
console.error("Exception stack:", err.stack);
console.error("Our current stack: ", new Error().stack);
var killtimer = setTimeout(function() {
console.error("Exiting after uncaught exception");
console.error(err.stack || err);