From 6f8728b82a28b4369633723af3d998b54affd241 Mon Sep 17 00:00:00 2001 From: Stefan Hellander Date: Tue, 21 Nov 2023 16:24:03 +0100 Subject: [PATCH] Added client active log message. --- fedn/fedn/network/clients/client.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fedn/fedn/network/clients/client.py b/fedn/fedn/network/clients/client.py index 44b8e8a4e..b8fe6d6f3 100644 --- a/fedn/fedn/network/clients/client.py +++ b/fedn/fedn/network/clients/client.py @@ -750,11 +750,11 @@ def run(self): old_state = self.state while True: time.sleep(1) - cnt += 1 + if cnt==0: + logger.info("Client is active, waiting for model update requests.") + cnt = 1 if self.state != old_state: logger.info("Client in {} state.".format(ClientStateToString(self.state))) - if cnt > 5: - cnt = 0 if not self._attached: logger.info("Detached from combiner.") # TODO: Implement a check/condition to ulitmately close down if too many reattachment attepts have failed. s