Skip to content

Commit 3012f02

Browse files
committed
Use #to_s for Hash object
Hash does not have `#bytesize` method.
1 parent e10aef8 commit 3012f02

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/fluent/logger/fluent_logger.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ def connection_string
176176

177177
def pending_bytesize
178178
if @pending
179-
@pending.bytesize
179+
@pending.to_s.bytesize
180180
else
181181
0
182182
end

0 commit comments

Comments
 (0)