Skip to content

Commit

Permalink
Merge pull request #1558 from fluent/fix-plugin-logger-delegators
Browse files Browse the repository at this point in the history
Add missing '<<' method to delegators
  • Loading branch information
repeatedly committed May 22, 2017
1 parent 0b98ed0 commit 4bb84f2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/fluent/log.rb
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ def enable_color(b = true)
extend Forwardable
def_delegators '@logger', :enable_color?, :enable_debug, :enable_event,
:disable_events, :tag, :tag=, :time_format, :time_format=,
:event, :caller_line, :puts, :write, :flush, :out, :out=
:event, :caller_line, :puts, :write, :<<, :flush, :out, :out=
end


Expand Down
2 changes: 2 additions & 0 deletions test/test_log.rb
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,8 @@ def test_write

def test_write_alias
assert(@log.respond_to?(:<<))
mock(@log.out).write("log")
@log << "log"
end

def test_out
Expand Down

0 comments on commit 4bb84f2

Please sign in to comment.