kopia lustrzana https://github.com/c9/core
Adding stack trace and crash information to logs when a service crashes
rodzic
2addd4339f
commit
9738b714ea
|
@ -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"
|
||||
}
|
||||
}
|
|
@ -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);
|
||||
|
|
Ładowanie…
Reference in New Issue