diff --git a/logprep/abc/processor.py b/logprep/abc/processor.py index 5ebde3a0e..3f11e656b 100644 --- a/logprep/abc/processor.py +++ b/logprep/abc/processor.py @@ -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) diff --git a/tests/unit/processor/geoip_enricher/test_geoip_enricher.py b/tests/unit/processor/geoip_enricher/test_geoip_enricher.py index 6e7f91020..901381a0f 100644 --- a/tests/unit/processor/geoip_enricher/test_geoip_enricher.py +++ b/tests/unit/processor/geoip_enricher/test_geoip_enricher.py @@ -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