keep test env logging for backwards-compat

This commit is contained in:
Tejas Manohar 2015-10-08 19:02:36 -05:00
parent c369b33b23
commit 6c19c41c09
1 changed files with 2 additions and 0 deletions

View File

@ -166,6 +166,8 @@ app.onerror = function(err){
if (404 == err.status || err.expose) return; if (404 == err.status || err.expose) return;
if (this.silent) return; if (this.silent) return;
// DEPRECATE env-specific logging in v2
if ('test' == this.env) return;
var msg = err.stack || err.toString(); var msg = err.stack || err.toString();
console.error(); console.error();