Reset haveNonRawStreams on <logger>.addStream

Fixed #218
This commit is contained in:
Trent Mick 2015-02-05 21:45:35 -08:00
parent 265c42f58f
commit 22669dbd32
2 changed files with 2 additions and 1 deletions

View file

@ -8,7 +8,7 @@ Known issues:
## bunyan 1.3.4 (not yet released) ## bunyan 1.3.4 (not yet released)
(nothing yet) - [issue #218] Reset `haveNonRawStreams` on `<logger>.addStream`.
## bunyan 1.3.3 ## bunyan 1.3.3

View file

@ -550,6 +550,7 @@ Logger.prototype.addStream = function addStream(s, defaultLevel) {
} }
self.streams.push(s); self.streams.push(s);
delete self.haveNonRawStreams; // reset
} }