From f96d710796803b4c3b8383aa6f7824fc3a5dfffb Mon Sep 17 00:00:00 2001 From: Taeseong Yu Date: Fri, 31 May 2024 13:29:39 +0900 Subject: [PATCH] Update lib/fluent/plugin/in_tail.rb Co-authored-by: Daijiro Fukuda --- lib/fluent/plugin/in_tail.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/fluent/plugin/in_tail.rb b/lib/fluent/plugin/in_tail.rb index 5848e13a81..953c6cbab4 100644 --- a/lib/fluent/plugin/in_tail.rb +++ b/lib/fluent/plugin/in_tail.rb @@ -1075,7 +1075,7 @@ def read_lines(lines) ) if is_long_line - @buffer = ''.force_encoding(@from_encoding) + @buffer.clear @was_long_line = true end end