lib/contrast/agent/assess/rule/provider/hardcoded_value_rule.rb in contrast-agent-3.10.2 vs lib/contrast/agent/assess/rule/provider/hardcoded_value_rule.rb in contrast-agent-3.11.0

- old
+ new

@@ -17,11 +17,11 @@ # type given # 3) value_passes? : does the value of the constant match a given value set # 4) redacted_marker : the value to plug in for the obfuscated value module HardcodedValueRule include Contrast::Components::Interface - access_component :contrast_service, :logging, :analysis + access_component :analysis, :contrast_service, :logging def disabled? !ASSESS.enabled? || ASSESS.rule_disabled?(rule_id) end @@ -109,10 +109,10 @@ activity.finding_tags = Contrast::Utils::StringUtils.protobuf_safe_string(ASSESS.tags) activity.findings << finding CONTRAST_SERVICE.queue_message activity rescue StandardError => e - logger.error(e, 'Unable to build a finding for Hardcoded Rule') + logger.error('Unable to build a finding for Hardcoded Rule', e) end end end end end