Removed unless level check.

This commit is contained in:
Chris Barber 2014-12-28 21:37:21 -08:00
parent 2f95bb8091
commit ee5d9b8082

View file

@ -371,10 +371,7 @@ function Logger(options, _childOptions, _childSimple) {
level: (options.level ? resolveLevel(options.level) : INFO)
});
} else if (options.streams) {
options.streams.forEach(function (s) {
s.level = s.level || s.level;
self.addStream(s);
});
options.streams.forEach(self.addStream, self);
} else if (parent && options.level) {
this.level(options.level);
} else if (!parent) {