Skip to content

Commit

Permalink
Added debug information
Browse files Browse the repository at this point in the history
  • Loading branch information
Koen1999 committed Jan 18, 2025
1 parent 61c0a7d commit c891a20
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions suricata_check/suricata_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -798,9 +798,12 @@ def analyze_rule(
for checker in checkers:
try:
rule_report.add_issues(checker.check_rule(rule))
except Exception: # noqa: BLE001
except Exception as exception: # noqa: BLE001
_logger.warning(
"Failed to run %s on rule: %s", checker.__class__.__name__, rule["raw"]
"Failed to run %s on rule: %s",
checker.__class__.__name__,
rule["raw"],
extra={"exception": exception},
)

rule_report.summary = __summarize_rule(rule_report, checkers)
Expand Down

0 comments on commit c891a20

Please sign in to comment.