Skip to content

Commit

Permalink
Use PackedForward instead of Message
Browse files Browse the repository at this point in the history
  • Loading branch information
okkez authored and kostyaplis committed Oct 1, 2019
1 parent 59ff16b commit 1c6687b
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions lib/fluent/logger/fluent_logger.rb
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,11 @@ def close
if @pending
begin
@pending.each do |tag, record|
<<<<<<< HEAD
send_data(tag, record)
=======
send_data([tag, record].to_msgpack)
>>>>>>> 4f98038... Use PackedForward instead of Message
end
rescue => e
set_last_error(e)
Expand Down Expand Up @@ -240,7 +244,11 @@ def write(tag, time, map)

begin
@pending.each do |tag, record|
<<<<<<< HEAD
send_data(tag, record)
=======
send_data([tag, record].to_msgpack)
>>>>>>> 4f98038... Use PackedForward instead of Message
end
@pending = nil
true
Expand Down Expand Up @@ -293,6 +301,7 @@ def send_data(tag, record)
# end
# data = data[n..-1]
#end
<<<<<<< HEAD
end

def send_data_nonblock(data)
Expand All @@ -313,6 +322,8 @@ def send_data_nonblock(data)
end
end
end
=======
>>>>>>> 4f98038... Use PackedForward instead of Message

true
end
Expand Down

0 comments on commit 1c6687b

Please sign in to comment.