Removed unless level check.
This commit is contained in:
parent
2f95bb8091
commit
ee5d9b8082
1 changed files with 1 additions and 4 deletions
|
@ -371,10 +371,7 @@ function Logger(options, _childOptions, _childSimple) {
|
||||||
level: (options.level ? resolveLevel(options.level) : INFO)
|
level: (options.level ? resolveLevel(options.level) : INFO)
|
||||||
});
|
});
|
||||||
} else if (options.streams) {
|
} else if (options.streams) {
|
||||||
options.streams.forEach(function (s) {
|
options.streams.forEach(self.addStream, self);
|
||||||
s.level = s.level || s.level;
|
|
||||||
self.addStream(s);
|
|
||||||
});
|
|
||||||
} else if (parent && options.level) {
|
} else if (parent && options.level) {
|
||||||
this.level(options.level);
|
this.level(options.level);
|
||||||
} else if (!parent) {
|
} else if (!parent) {
|
||||||
|
|
Loading…
Reference in a new issue