From f5108d2f660551681a8b9c5cdcea37c93843ae70 Mon Sep 17 00:00:00 2001 From: tomryanx Date: Sun, 20 Oct 2019 16:36:38 +1100 Subject: [PATCH] add actual class value to error output --- lib/logstash/filters/math_calculation_elements.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/logstash/filters/math_calculation_elements.rb b/lib/logstash/filters/math_calculation_elements.rb index a945bf5..fa84f16 100644 --- a/lib/logstash/filters/math_calculation_elements.rb +++ b/lib/logstash/filters/math_calculation_elements.rb @@ -95,7 +95,7 @@ def get(event_register_context) when LogStash::Timestamp, Time value.to_f else - logger.warn("field value is not numeric or time", "field" => @field, "value" => value, "event" => event_register_context.event.to_hash) + logger.warn("field value is not numeric or time", "field" => @field, "value" => value, "class" => @field.class, "event" => event_register_context.event.to_hash) nil end end