mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 22:57:16 -04:00
output: fix use of exclude_tags
in output plugins
For people still using `exclude_tags` in their output configuration, Logstash stops with an exception `TypeError: can't convert nil into String`. Fix that by fixing the reference to `@exclude_tags`. Fixes #2323
This commit is contained in:
parent
87aea97f49
commit
19bfe8c14a
1 changed files with 1 additions and 1 deletions
|
@ -112,7 +112,7 @@ class LogStash::Outputs::Base < LogStash::Plugin
|
|||
|
||||
if !@exclude_tags.empty? && event["tags"]
|
||||
if @exclude_tags.send(@exclude_method) {|tag| event["tags"].include?(tag)}
|
||||
@logger.debug? and @logger.debug("outputs/#{self.class.name}: Dropping event because tags contains excluded tags: #{exclude_tags.inspect}", event)
|
||||
@logger.debug? and @logger.debug("outputs/#{self.class.name}: Dropping event because tags contains excluded tags: #{@exclude_tags.inspect}", event)
|
||||
return false
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue