lib/fluent/plugin/out_string_scrub.rb in fluent-plugin-string-scrub-1.0.0 vs lib/fluent/plugin/out_string_scrub.rb in fluent-plugin-string-scrub-1.0.1
- old
+ new
@@ -66,9 +66,11 @@
def recv_record(record)
scrubbed = {}
record.each do |k,v|
if v.instance_of? Hash
scrubbed[with_scrub(k)] = recv_record(v)
+ elsif v.instance_of? Integer
+ scrubbed[k] = v
else
scrubbed[with_scrub(k)] = with_scrub(v)
end
end
scrubbed