Do not log on expected http errors
This commit is contained in:
parent
e021a6e7cb
commit
391650518f
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue