kopia lustrzana https://github.com/c9/core
Adding more custom data so we can track down server crashes
rodzic
9738b714ea
commit
c7d7a9d703
|
@ -23,6 +23,10 @@ function plugin(options, imports, register) {
|
|||
connect.useStart(function(req, res, next) {
|
||||
var d = domain.create();
|
||||
d.on("error", function(err) {
|
||||
raygun.customData = raygun.customData || {};
|
||||
raygun.customData.serverCrashed = true;
|
||||
raygun.customData.exceptionStack = err.stack;
|
||||
raygun.customData.crashStack = new Error().stack;
|
||||
sendRequestError(err, req);
|
||||
|
||||
// from http://nodejs.org/api/domain.html
|
||||
|
|
Ładowanie…
Reference in New Issue