Skip to content

Commit

Permalink
Add more debug output
Browse files Browse the repository at this point in the history
  • Loading branch information
ppcad committed Dec 18, 2024
1 parent 4264a0b commit d074789
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions logprep/abc/processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,7 @@ def _process_rule_tree_multiple_times(tree: RuleTree, event: dict):

def _process_rule_tree_once(tree: RuleTree, event: dict):
matching_rules = tree.get_matching_rules(event)
print("DEUG - #matching_rules", len(matching_rules))
for rule in matching_rules:
_process_rule(rule, event)

Expand Down
1 change: 1 addition & 0 deletions tests/unit/processor/geoip_enricher/test_geoip_enricher.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ def test_source_field_is_none_emits_missing_fields_warning(self):
document = {"client": {"ip": None}}
expected = {"client": {"ip": None}, "tags": ["_geoip_enricher_missing_field_warning"]}
self._load_rule(self.object.rules[0])
print("DEBUG - rules:", self.object.rules)
self.object.process(document)
assert document == expected
assert len(self.object.result.warnings) == 1
Expand Down

0 comments on commit d074789

Please sign in to comment.