mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 14:47:19 -04:00
Actually include a newline ;)
This commit is contained in:
parent
5767c28da6
commit
06245b0da2
1 changed files with 2 additions and 2 deletions
|
@ -47,9 +47,9 @@ class LogStash::Codecs::Line < LogStash::Codecs::Base
|
|||
public
|
||||
def encode(data)
|
||||
if data.is_a? LogStash::Event and @format
|
||||
@on_event.call(data.sprintf(@format))
|
||||
@on_event.call(data.sprintf(@format) + "\n")
|
||||
else
|
||||
@on_event.call(data.to_s)
|
||||
@on_event.call(data.to_s + "\n")
|
||||
end
|
||||
end # def encode
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue