logger: less spam.
This commit is contained in:
parent
8765bf5a6d
commit
581a658808
@ -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');
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Loading…
Reference in New Issue
Block a user