logger: report errors.

This commit is contained in:
Christopher Jeffrey 2016-08-25 18:31:46 -07:00
parent aa7f105f38
commit b3c061f125
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

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