Permalink
Browse files

- add note about why we're making a hash

  • Loading branch information...
jordansissel committed May 12, 2011
1 parent 6ab2242 commit 0726603b194dcf668eb6256fd4333de9a706d62a
Showing with 2 additions and 0 deletions.
  1. +2 −0 lib/logstash/outputs/gelf.rb
@@ -36,6 +36,8 @@ def register
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)

0 comments on commit 0726603

Please sign in to comment.