From 792bb6d5ec917da7279c7fefda4c233d5a64d50b Mon Sep 17 00:00:00 2001 From: TAGOMORI Satoshi Date: Mon, 19 Dec 2016 20:13:53 +0900 Subject: [PATCH] fix not to clear logs in #start, because it clears logs from #start of plugin helpers --- lib/fluent/log.rb | 5 ----- test/test_log.rb | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/lib/fluent/log.rb b/lib/fluent/log.rb index 082e946c47..29c3965ece 100644 --- a/lib/fluent/log.rb +++ b/lib/fluent/log.rb @@ -433,11 +433,6 @@ def configure(conf) end end - def start - @log.reset - super - end - def terminate super @log.reset diff --git a/test/test_log.rb b/test/test_log.rb index 10d2ce9454..6aa7fe9d0c 100644 --- a/test/test_log.rb +++ b/test/test_log.rb @@ -643,7 +643,7 @@ def test_optional_header def test_start plugin = DummyPlugin.new - mock(plugin.log).reset + mock(plugin.log).should_receive(:reset).never plugin.start end