lib/contrast/agent/protect/rule/base_service.rb in contrast-agent-3.10.2 vs lib/contrast/agent/protect/rule/base_service.rb in contrast-agent-3.11.0

- old
+ new

@@ -1,8 +1,10 @@ # Copyright (c) 2020 Contrast Security, Inc. See https://www.contrastsecurity.com/enduser-terms-0317a for more details. # frozen_string_literal: true +cs__scoped_require 'contrast/agent/protect/rule/base' + module Contrast module Agent module Protect module Rule # Encapsulate common code for protect rules that do their @@ -54,10 +56,10 @@ find_attacker_with_results(context, potential_attack_string, ia_results, **kwargs) end # Allows for the InputAnalysis from service to be extracted early def find_attacker_with_results context, potential_attack_string, ia_results, **kwargs - logger.debug("checking: #{ name } vectors=#{ ia_results.length } in '#{ potential_attack_string }'") + logger.trace('Checking vectors for attacks', rule: name, input: potential_attack_string) result = nil ia_results.each do |ia_result| if potential_attack_string idx = potential_attack_string.index(ia_result.value)