logger: less spam.

This commit is contained in:
Christopher Jeffrey 2016-08-17 05:57:40 -07:00
parent 8765bf5a6d
commit 581a658808
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -324,8 +324,10 @@ Logger.prototype._error = function error(err) {
this.log('error', [msg]);
if (this.stream)
this.stream.write(err.stack + '\n');
if (this.level >= Logger.levels.spam) {
if (this.stream)
this.stream.write(err.stack + '\n');
}
};
/**