Fix logging style

This commit is contained in:
Jordan Sissel 2013-08-25 15:36:23 -07:00
parent 7cb6f23bac
commit c855a2f876

View file

@ -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