From da91e065b93ef2c1d1296fd8b49a8f62ff4205fe Mon Sep 17 00:00:00 2001 From: Leonid Chernin Date: Mon, 13 Jan 2025 11:37:00 +0000 Subject: [PATCH] add debug logs to state->update Signed-off-by: Leonid Chernin --- control/state.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/control/state.py b/control/state.py index 80a12afc..19ee3b36 100644 --- a/control/state.py +++ b/control/state.py @@ -1079,14 +1079,16 @@ def update(self) -> bool: host_prefix = GatewayState.build_host_key("nqn", None) subsystem_prefix = GatewayState.build_subsystem_key("nqn") for key in changed.keys(): + self.logger.info(f"Changed key: {key} local-state: {local_state_dict[key]}" + f" omap-state: {omap_state_dict[key]}") if key.startswith(ns_prefix): (should_process, new_lb_grp_id) = self.namespace_only_lb_group_id_changed( local_state_dict[key], omap_state_dict[key]) if should_process: assert new_lb_grp_id, "Shouldn't get here with an empty lb group id" - self.logger.debug(f"Found {key} where only the load balancing group id " - f"has changed. The new group id is {new_lb_grp_id}") + self.logger.info(f"Found {key} where only the load balancing group id " + f"has changed. The new group id is {new_lb_grp_id}") only_lb_group_changed.append((key, new_lb_grp_id)) (should_process,