s/array/Array/

This commit is contained in:
Pete Fritchman 2011-05-27 16:47:18 -07:00 committed by Bob Corsaro
parent 17c848c915
commit 8baf471ea2

View file

@ -64,7 +64,7 @@ class LogStash::Outputs::Gelf < LogStash::Outputs::Base
m = Hash.new
if event.fields["message"]
v = event.fields["message"]
m["short_message"] = (v.is_a?(array) && v.length == 1) ? v.first : v
m["short_message"] = (v.is_a?(Array) && v.length == 1) ? v.first : v
else
m["short_message"] = event.message
end