Actually include a newline ;)

This commit is contained in:
Jordan Sissel 2013-08-24 22:32:38 -07:00
parent 5767c28da6
commit 06245b0da2

View file

@ -47,9 +47,9 @@ class LogStash::Codecs::Line < LogStash::Codecs::Base
public public
def encode(data) def encode(data)
if data.is_a? LogStash::Event and @format if data.is_a? LogStash::Event and @format
@on_event.call(data.sprintf(@format)) @on_event.call(data.sprintf(@format) + "\n")
else else
@on_event.call(data.to_s) @on_event.call(data.to_s + "\n")
end end
end # def encode end # def encode