From eae1b0f47c1d6198a3a9fdb51707d747ae0e2cc8 Mon Sep 17 00:00:00 2001 From: andsel Date: Tue, 3 Sep 2024 14:38:21 +0200 Subject: [PATCH] Deprecated the 'none' value for the just introduced 'decode_size_limit_bytes' setting --- lib/logstash/codecs/json_lines.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/logstash/codecs/json_lines.rb b/lib/logstash/codecs/json_lines.rb index e0059c1..f3a4df1 100644 --- a/lib/logstash/codecs/json_lines.rb +++ b/lib/logstash/codecs/json_lines.rb @@ -57,6 +57,7 @@ class LogStash::Codecs::JSONLines < LogStash::Codecs::Base def register if @decode_size_limit_bytes == "none" + deprecation_logger.deprecated "`none` default value for `decode_size_limit_bytes` setting is going to be moved to a defined limit in a future version. Set a reasonable value compatible with your lines size." @buffer = FileWatch::BufferedTokenizer.new(@delimiter) else @buffer = FileWatch::BufferedTokenizer.new(@delimiter, @decode_size_limit_bytes.to_i)