Skip to content

Commit

Permalink
Merge pull request #2554 from ethan-daocloud/patch-2
Browse files Browse the repository at this point in the history
cleanup: filter_grep.rb logging message word fix
  • Loading branch information
repeatedly committed Aug 13, 2019
2 parents 9e88103 + a2666de commit 4d07746
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/fluent/plugin/filter_grep.rb
Expand Up @@ -110,15 +110,15 @@ def configure(conf)
end

if @regexps.size > 1
log.info "Top level multiple <regexp> is intepreted as 'and' condition"
log.info "Top level multiple <regexp> is interpreted as 'and' condition"
end
@regexps.each do |e|
raise Fluent::ConfigError, "Duplicate key: #{e.key}" if regexp_and_conditions.key?(e.key)
regexp_and_conditions[e.key] = Expression.new(record_accessor_create(e.key), e.pattern)
end

if @excludes.size > 1
log.info "Top level multiple <exclude> is intepreted as 'or' condition"
log.info "Top level multiple <exclude> is interpreted as 'or' condition"
end
@excludes.each do |e|
raise Fluent::ConfigError, "Duplicate key: #{e.key}" if exclude_or_conditions.key?(e.key)
Expand Down

0 comments on commit 4d07746

Please sign in to comment.