log error path as well

This commit is contained in:
barisusakli
2014-11-04 18:06:11 -05:00
parent cdfaa941b1
commit b7dcc29638

View File

@@ -175,7 +175,8 @@ function handleErrors(err, req, res, next) {
// we may use properties of the error object
// here and next(err) appropriately, or if
// we possibly recovered from the error, simply next().
console.error(err.stack);
//console.error(err.stack, req.path);
winston.error(req.path + '\n', err.stack);
var status = err.status || 500;
res.status(status);