Don't log errors for bad http requests

This commit is contained in:
calzoneman 2014-10-12 11:36:54 -05:00
parent fa85030524
commit 029fa62af2

View file

@ -244,6 +244,8 @@ module.exports = {
return res.status(400).send("Malformed path: " + req.path);
} else if (err.message && err.message.match(/requested range not/i)) {
return res.status(416).end();
} else if (err.message && err.message.match(/bad request/i)) {
return res.status(400).end("Bad Request");
}
Logger.errlog.log(err.stack);
res.status(500).end();