Skip to content

Commit 36f115f

Browse files
committed
Use #to_s for Hash object
Hash does not have `#bytesize` method.
1 parent e6a772b commit 36f115f

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
@@ -177,7 +177,7 @@ def connection_string
177177

178178
def pending_bytesize
179179
if @pending
180-
@pending.bytesize
180+
@pending.to_s.bytesize
181181
else
182182
0
183183
end

0 commit comments

Comments
 (0)