mirror of
https://github.com/elastic/logstash.git
synced 2025-04-23 22:27:21 -04:00
better debug logging
This commit is contained in:
parent
11b4cf17dc
commit
3697fa995c
1 changed files with 2 additions and 2 deletions
|
@ -68,11 +68,11 @@ class LogStash::Filters::Grep < LogStash::Filters::Base
|
|||
|
||||
(event[field].is_a?(Array) ? event[field] : [event[field]]).each do |value|
|
||||
if @negate
|
||||
@logger.debug("want negate match")
|
||||
@logger.debug(["want negate match", re, value])
|
||||
next if re.match(value)
|
||||
@logger.debug(["grep not-matched (negate requsted)", { field => value }])
|
||||
else
|
||||
@logger.debug(["trying regex", re, value])
|
||||
@logger.debug(["want match", re, value])
|
||||
next unless re.match(value)
|
||||
@logger.debug(["grep matched", { field => value }])
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue