From 3338d5e679f91e144b0d653c2a550c22d88accd3 Mon Sep 17 00:00:00 2001 From: Masahiro Nakagawa Date: Tue, 2 Apr 2019 08:02:06 +0900 Subject: [PATCH] in_tail: Fix check condition for encoding Signed-off-by: Masahiro Nakagawa --- 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 4186f27841..d054d109f9 100644 --- a/lib/fluent/plugin/in_tail.rb +++ b/lib/fluent/plugin/in_tail.rb @@ -171,7 +171,7 @@ def configure_encoding @encoding = parse_encoding_param(@encoding) if @encoding @from_encoding = parse_encoding_param(@from_encoding) if @from_encoding - if @encoding == @from_encoding + if @encoding && (@encoding == @from_encoding) log.warn "'encoding' and 'from_encoding' are same encoding. No effect" end end