Skip to content

Commit

Permalink
Add logging for rule matches.
Browse files Browse the repository at this point in the history
  • Loading branch information
costastf committed Jan 6, 2024
1 parent 48af194 commit 3748746
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions awsfindingsmanagerlib/awsfindingsmanagerlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -570,6 +570,8 @@ def get_findings(self):
if resource_ids_patterns:
matching_findings = [finding for finding in findings
if finding.is_matching_resource_ids(resource_ids_patterns)]
self._logger.debug(f'Following findings matched with rule with note: "{rule.note}", '
f'{[finding.id for finding in matching_findings]}')
else:
self._logger.debug('No resource id patterns are provided in the rule, all findings used.')
matching_findings = findings
Expand Down

0 comments on commit 3748746

Please sign in to comment.