logger: minor.
This commit is contained in:
parent
203791c1f7
commit
32ea933b77
@ -646,6 +646,9 @@ Logger.prototype.logError = function logError(level, module, err) {
|
||||
|
||||
msg = (err.message + '').replace(/^ *Error: */, '');
|
||||
|
||||
if (level !== Logger.levels.ERROR)
|
||||
msg = 'Error: ' + msg;
|
||||
|
||||
this.log(level, module, [msg]);
|
||||
|
||||
if (level <= Logger.levels.WARNING) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user