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 authored May 9, 2017
2 parents 182bebd + d106632 commit a61bd03
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 @@ -472,7 +472,7 @@ def enable_color(b = true)
extend Forwardable
def_delegators '@logger', :enable_color?, :enable_debug, :enable_event,
:disable_events, :log_event_enabled, :log_event_enamed=, :time_format, :time_format=,
:event, :caller_line, :puts, :write, :flush, :reset, :out, :out=,
:event, :caller_line, :puts, :write, :<<, :flush, :reset, :out, :out=,
:optional_header, :optional_header=, :optional_attrs, :optional_attrs=
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 @@ -722,6 +722,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 a61bd03

Please sign in to comment.