Skip to content

Commit

Permalink
fix not to clear logs in #start, because it clears logs from #start o…
Browse files Browse the repository at this point in the history
…f plugin helpers
  • Loading branch information
tagomoris committed Dec 19, 2016
1 parent 553f8aa commit 792bb6d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
5 changes: 0 additions & 5 deletions lib/fluent/log.rb
Original file line number Diff line number Diff line change
Expand Up @@ -433,11 +433,6 @@ def configure(conf)
end
end

def start
@log.reset
super
end

def terminate
super
@log.reset
Expand Down
2 changes: 1 addition & 1 deletion test/test_log.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 792bb6d

Please sign in to comment.