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

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();