- add note about why we're making a hash

This commit is contained in:
Jordan Sissel 2011-05-12 10:08:10 -07:00
parent 6ab2242fa1
commit 0726603b19

View file

@ -36,6 +36,8 @@ class LogStash::Outputs::Gelf < LogStash::Outputs::Base
public
def receive(event)
# We have to make our own hash here because GELF expects a hash
# with a specific format.
m = Hash.new
m["short_message"] = (event.fields["message"] or event.message)
m["full_message"] = (event.message)