mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 06:37:19 -04:00
Fix logging style
This commit is contained in:
parent
7cb6f23bac
commit
c855a2f876
1 changed files with 2 additions and 2 deletions
|
@ -66,14 +66,14 @@ class LogStash::Outputs::Base < LogStash::Plugin
|
|||
|
||||
if !@tags.empty?
|
||||
if !@tags.send(@include_method) {|tag| event.tags.include?(tag)}
|
||||
@logger.debug? and @logger.debug(["Dropping event because tags don't match #{@tags.inspect}", event])
|
||||
@logger.debug? and @logger.debug("Dropping event because tags don't match #{@tags.inspect}", event)
|
||||
return false
|
||||
end
|
||||
end
|
||||
|
||||
if !@exclude_tags.empty?
|
||||
if @exclude_tags.send(@exclude_method) {|tag| event.tags.include?(tag)}
|
||||
@logger.debug? and @logger.debug(["Dropping event because tags contains excluded tags: #{exclude_tags.inspect}", event])
|
||||
@logger.debug? and @logger.debug("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