From b7dcc29638d9972727be66de9aa7a11ca8bb610a Mon Sep 17 00:00:00 2001 From: barisusakli Date: Tue, 4 Nov 2014 18:06:11 -0500 Subject: [PATCH] log error path as well --- src/routes/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/routes/index.js b/src/routes/index.js index d7465d089d..4d5f84ce48 100644 --- a/src/routes/index.js +++ b/src/routes/index.js @@ -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);