add some eslint rules

This commit is contained in:
Matteo Pagliazzi
2015-11-03 22:22:33 +01:00
parent cbca250b99
commit 54d89a59e3
2 changed files with 39 additions and 2 deletions

View File

@@ -10,7 +10,7 @@ let InternalServerError = errors.InternalServerError;
module.exports = function (err, req, res, next) {
// Log the original error with some metadata
let stack = err.stack || err.message || err;
logging.error(stack, {
logger.error(stack, {
originalUrl: req.originalUrl,
headers: req.headers,
body: req.body