lib/logstash/codecs/oldlogstashjson.rb in logstash-codec-oldlogstashjson-0.1.2 vs lib/logstash/codecs/oldlogstashjson.rb in logstash-codec-oldlogstashjson-0.1.3
- old
+ new
@@ -49,9 +49,9 @@
h["@fields"] ||= {}
h["@fields"][field] = val
end
# Tack on a \n because JSON outputs 1.1.x had them.
- @on_event.call(LogStash::Json.dump(h) + NL)
+ @on_event.call(event, LogStash::Json.dump(h) + NL)
end # def encode
end # class LogStash::Codecs::OldLogStashJSON