fluent-plugin-gelf-best-test 1.3.6 → 1.3.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/fluent/plugin/gelf_plugin_util.rb +1 -7
- data/lib/fluent-plugin-gelf-best/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bf3cea5a4e4fa41492b61f8b1a80f36ab41058ef404d61b9a98e44b9c3529f10
|
4
|
+
data.tar.gz: 8b82dc7ed8e94ab961ebcf7ffb986d01c70e544fa86e0f6dfd3bef9d3f6942f0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3983835a19c099afc1d15ac01dc4196910490b8aa5d34de9b4f3081b9cc03e7b7f0f5371b624cd7b722a7f8476bc210483703f34633651f728b7e02fb5016dd9
|
7
|
+
data.tar.gz: 15e594df0766381bb489ccfafaca30f75f78875ebace73faadfec73478828bf492021f765ac2cf57d4ab4acf2d855f32052129c4b9068fa70949ea5673e1d2ea
|
@@ -37,7 +37,7 @@ module Fluent
|
|
37
37
|
|
38
38
|
def process_record_entry(k, v, conf, gelfentry)
|
39
39
|
# Truncate values longer than max_bytes
|
40
|
-
v =
|
40
|
+
v = (v.respond_to?(:bytesize) && v.bytesize > conf[:max_bytes]) ? "#{v.byteslice(0, conf[:max_bytes] - 3)}..." : v
|
41
41
|
|
42
42
|
case k
|
43
43
|
when 'host', 'hostname'
|
@@ -67,12 +67,6 @@ module Fluent
|
|
67
67
|
end
|
68
68
|
end
|
69
69
|
|
70
|
-
def truncate_value(value, max_bytes)
|
71
|
-
value = value.to_s
|
72
|
-
value.bytesize > max_bytes ? "#{value.byteslice(0, max_bytes - 15)}tniemy..." : value
|
73
|
-
end
|
74
|
-
|
75
|
-
|
76
70
|
def ensure_short_message(gelfentry)
|
77
71
|
return if gelfentry['short_message'] && !gelfentry['short_message'].to_s.strip.empty?
|
78
72
|
|