Do not log on expected http errors

This commit is contained in:
Sterling Williams 2015-08-20 12:28:40 -06:00 committed by Jonathan Ong
parent e021a6e7cb
commit 391650518f

View file

@ -163,7 +163,7 @@ app.createContext = function(req, res){
app.onerror = function(err){
assert(err instanceof Error, 'non-error thrown: ' + err);
if (404 == err.status) return;
if (404 == err.status || err.expose) return;
if ('test' == this.env) return;
var msg = err.stack || err.toString();