- clone the message string; otherwise the test suite for the kv filter

fires this warning: "RuntimeError: string modified"
This commit is contained in:
Jordan Sissel 2013-04-11 15:35:19 -07:00
parent 8416d81a6c
commit d9be423f75

View file

@ -72,7 +72,7 @@ class LogStash::Inputs::Generator < LogStash::Inputs::Threadable
queue << event
end
else
event = to_event(@message, source)
event = to_event(@message.clone, source)
event["sequence"] = number
queue << event
end