mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 06:37:19 -04:00
don't need to .flatten anymore
This commit is contained in:
parent
f65d21bf38
commit
19f8cecc1f
2 changed files with 1 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue