Skip to content

Commit 107bc06

Browse files
committed
Use #to_s for Hash object
Hash does not have `#bytesize` method. Signed-off-by: Kenji Okimoto <[email protected]>
1 parent a8144e7 commit 107bc06

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)