mirror of
https://github.com/elastic/logstash.git
synced 2025-04-23 22:27:21 -04:00
s/array/Array/
This commit is contained in:
parent
17c848c915
commit
8baf471ea2
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue