From 9738b714ea7b01e996186abde0ce229707a39895 Mon Sep 17 00:00:00 2001 From: Tim Robinson Date: Fri, 24 Jul 2015 10:23:12 +0000 Subject: [PATCH] Adding stack trace and crash information to logs when a service crashes --- package.json | 3 ++- plugins/c9.error/raygun.connect.js | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 5d25b2f9..c0626b89 100644 --- a/package.json +++ b/package.json @@ -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" } } \ No newline at end of file diff --git a/plugins/c9.error/raygun.connect.js b/plugins/c9.error/raygun.connect.js index 6511ef58..0939c28b 100644 --- a/plugins/c9.error/raygun.connect.js +++ b/plugins/c9.error/raygun.connect.js @@ -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);