Merge pull request #203 from cb1kenobi/useless_level

Removed useless level check.
This commit is contained in:
Trent Mick 2015-01-16 22:33:45 -08:00
commit da440c9324

View file

@ -375,10 +375,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) {