- LogStash::Event#remove now uses HashEval

This commit is contained in:
Jordan Sissel 2013-08-09 09:05:19 -07:00
parent 1d45784c68
commit 91ccbd855b

View file

@ -181,7 +181,9 @@ class LogStash::Event
# Remove a field. Returns the value of that field when deleted
public
def remove(field)
return @data.delete(field)
return LogStash::Util::HashEval.exec(str, @data) do |obj, key|
obj.delete(key)
end
end # def remove
# sprintf. This could use a better method name.