lib/fluent/plugin/gelf_plugin_util.rb in fluent-plugin-gelf-best-test-1.3.5 vs lib/fluent/plugin/gelf_plugin_util.rb in fluent-plugin-gelf-best-test-1.3.6
- old
+ new
@@ -67,10 +67,10 @@
end
end
def truncate_value(value, max_bytes)
value = value.to_s
- value.bytesize > max_bytes ? "#{value.byteslice(0, max_bytes - 3)}..." : value
+ value.bytesize > max_bytes ? "#{value.byteslice(0, max_bytes - 15)}tniemy..." : value
end
def ensure_short_message(gelfentry)
return if gelfentry['short_message'] && !gelfentry['short_message'].to_s.strip.empty?