diff --git a/lib/bunyan.js b/lib/bunyan.js index 3d15820..fb4044b 100644 --- a/lib/bunyan.js +++ b/lib/bunyan.js @@ -282,7 +282,7 @@ function Logger(options, _childOptions, _childSimple) { s = objCopy(s); // Implicit 'type' from other args. - type = s.type; + var type = s.type; if (!s.type) { if (s.stream) { s.type = "stream";