diff --git a/lib/bunyan.js b/lib/bunyan.js index 875504e..e9d6738 100644 --- a/lib/bunyan.js +++ b/lib/bunyan.js @@ -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) {