lib/logstash/codecs/plain.rb in logstash-codec-plain-0.1.2 vs lib/logstash/codecs/plain.rb in logstash-codec-plain-0.1.3

- old
+ new

@@ -37,12 +37,12 @@ end # def decode public def encode(event) if event.is_a?(LogStash::Event) and @format - @on_event.call(event.sprintf(@format)) + @on_event.call(event, event.sprintf(@format)) else - @on_event.call(event.to_s) + @on_event.call(event, event.to_s) end end # def encode end # class LogStash::Codecs::Plain