Skip to content

Commit 03210fb

Browse files
authored
Fix typo deprecation message Megabytes MB instead of Mb (#48)
`Mb` traditionally means Megabit though in context would be understood as Megaby, `MB` is mentioned in the documentation and less opened to interpretation for Megabytes
1 parent f4e4e00 commit 03210fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/logstash/codecs/json_lines.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ class LogStash::Codecs::JSONLines < LogStash::Codecs::Base
5858

5959
def register
6060
if original_params['decode_size_limit_bytes'].nil?
61-
deprecation_logger.deprecated "The default value for `decode_size_limit_bytes`, currently at 512Mb, will be lowered in a future version to prevent Out of Memory errors from abnormally large messages or missing delimiters. Please set a value that reflects the largest expected message size (e.g. 20971520 for 20Mb)"
61+
deprecation_logger.deprecated "The default value for `decode_size_limit_bytes`, currently at 512MB, will be lowered in a future version to prevent Out of Memory errors from abnormally large messages or missing delimiters. Please set a value that reflects the largest expected message size (e.g. 20971520 for 20MB)"
6262
end
6363
@buffer = FileWatch::BufferedTokenizer.new(@delimiter, @decode_size_limit_bytes)
6464
@converter = LogStash::Util::Charset.new(@charset)

0 commit comments

Comments
 (0)