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.
  • Loading branch information
okkez committed Jul 26, 2017
1 parent e10aef8 commit 3012f02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/fluent/logger/fluent_logger.rb
Expand Up @@ -176,7 +176,7 @@ def connection_string

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

0 comments on commit 3012f02

Please sign in to comment.