logger: report errors.
This commit is contained in:
parent
aa7f105f38
commit
b3c061f125
@ -324,7 +324,7 @@ Logger.prototype._error = function error(err) {
|
|||||||
|
|
||||||
this.log('error', [msg]);
|
this.log('error', [msg]);
|
||||||
|
|
||||||
if (this.level >= Logger.levels.spam) {
|
if (this.level >= Logger.levels.debug) {
|
||||||
if (this.stream)
|
if (this.stream)
|
||||||
this.stream.write(err.stack + '\n');
|
this.stream.write(err.stack + '\n');
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user