From 22669dbd329c701cfa0625f7265f14450247a70b Mon Sep 17 00:00:00 2001 From: Trent Mick Date: Thu, 5 Feb 2015 21:45:35 -0800 Subject: [PATCH] Reset `haveNonRawStreams` on `.addStream` Fixed #218 --- CHANGES.md | 2 +- lib/bunyan.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGES.md b/CHANGES.md index 9c481ff..8fba0b1 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -8,7 +8,7 @@ Known issues: ## bunyan 1.3.4 (not yet released) -(nothing yet) +- [issue #218] Reset `haveNonRawStreams` on `.addStream`. ## bunyan 1.3.3 diff --git a/lib/bunyan.js b/lib/bunyan.js index 336d60e..f7b4d9e 100644 --- a/lib/bunyan.js +++ b/lib/bunyan.js @@ -550,6 +550,7 @@ Logger.prototype.addStream = function addStream(s, defaultLevel) { } self.streams.push(s); + delete self.haveNonRawStreams; // reset }