From e04064a3eb60acc644de774395ac6ee4904ea34a Mon Sep 17 00:00:00 2001 From: Anton Sidelnikov <53078276+anton-sidelnikov@users.noreply.github.com> Date: Fri, 5 Apr 2024 09:41:02 +0200 Subject: [PATCH] fix: additional logging for expr eval (#18) fix: additional logging for expr eval Additional debug to find out for which service expression was evaluated Reviewed-by: Vladimir Hasko --- src/common.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/common.rs b/src/common.rs index 3eac6b0..f3d7d1f 100644 --- a/src/common.rs +++ b/src/common.rs @@ -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) => {