Skip to content

Commit

Permalink
fix: additional logging for expr eval (#18)
Browse files Browse the repository at this point in the history
fix: additional logging for expr eval

Additional debug to find out for which service expression was evaluated

Reviewed-by: Vladimir Hasko <[email protected]>
  • Loading branch information
anton-sidelnikov authored Apr 5, 2024
1 parent ae0e1ae commit e04064a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,12 @@ pub async fn get_service_health(
Ok(m) => {
if m {
expression_res = expr.weight as u8;
tracing::debug!(
"Summary of evaluation expression for service: {:?}, expression: {:?}, weight: {:?}",
service,
expr.expression,
expr.weight
);
}
}
Err(e) => {
Expand Down

0 comments on commit e04064a

Please sign in to comment.