don't need to .flatten anymore

This commit is contained in:
Pete Fritchman 2011-02-20 21:20:00 -08:00
parent f65d21bf38
commit 19f8cecc1f
2 changed files with 1 additions and 3 deletions

View file

@ -41,7 +41,6 @@ module LogStash::Config::Mixin
end
params.each do |key, value|
validator = self.class.validator_find(key)
@logger.info("config #{self.class.name}/@#{key} = #{value.inspect}")
# set @foo

View file

@ -28,8 +28,7 @@ class LogStash::Filters::Grok < LogStash::Filters::Base
@pile.add_patterns_from_file(path)
end
# TODO(petef, sissel): should not need .flatten here
@pattern.flatten.each do |pattern|
@pattern.each do |pattern|
groks = @pile.compile(pattern)
@logger.debug(["Compiled pattern", pattern, groks[-1].expanded_pattern])
end