Skip to content

Commit

Permalink
Use #to_s for Hash object
Browse files Browse the repository at this point in the history
Hash does not have `#bytesize` method.

Signed-off-by: Kenji Okimoto <[email protected]>
  • Loading branch information
okkez committed Sep 27, 2018
1 parent a8144e7 commit 107bc06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/fluent/logger/fluent_logger.rb
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ def connection_string

def pending_bytesize
if @pending
@pending.bytesize
@pending.to_s.bytesize
else
0
end
Expand Down

0 comments on commit 107bc06

Please sign in to comment.