- should merge arrays, not append

This commit is contained in:
Jordan Sissel 2010-10-26 09:22:47 +00:00
parent 85d90ba6c4
commit 0b44e65eaf

View file

@ -60,7 +60,7 @@ class LogStash::Inputs::Amqp
if !event.include?("tags")
event["tags"] = @tags
else
event["tags"] << @tags
event["tags"] |= @tags # set union
end
@callback.call(event)
end # def event