Remove user field from log, var not in scope

This commit is contained in:
Shane Kilkelly 2017-06-26 13:56:22 +01:00
parent 2dda430691
commit 0d5d59bb66

View file

@ -38,5 +38,5 @@ module.exports = ErrorController =
logger.warn {err: error, url: req.url}, "not found error"
res.sendStatus(404)
else
logger.error err: error, url:req.url, method:req.method, user:user, "error passed to top level next middlewear"
logger.error err: error, url:req.url, method:req.method, "error passed to top level next middlewear"
res.sendStatus(500)