Skip to content

Commit

Permalink
add debug log for get_property call
Browse files Browse the repository at this point in the history
Signed-off-by: Eguzki Astiz Lezaun <eastizle@redhat.com>
  • Loading branch information
eguzki committed Sep 10, 2024
1 parent ff7e501 commit b7e37c8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/policy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,10 @@ impl Policy {

fn pattern_expression_applies(&self, filter: &Filter, p_e: &PatternExpression) -> bool {
let attribute_path = p_e.path();
debug!(
"#{} get_property: selector: {} path: {:?}",
filter.context_id, p_e.selector, attribute_path
);
let attribute_value = match filter.get_property(attribute_path) {
None => {
debug!(
Expand Down Expand Up @@ -127,6 +131,10 @@ impl Policy {
};

let attribute_path = selector_item.path();
debug!(
"#{} get_property: selector: {} path: {:?}",
filter.context_id, selector_item.selector, attribute_path
);
let value = match filter.get_property(attribute_path.tokens()) {
None => {
debug!(
Expand Down

0 comments on commit b7e37c8

Please sign in to comment.