Skip to content

Commit

Permalink
Added client active log message.
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanhellander committed Nov 21, 2023
1 parent f1cca65 commit 6f8728b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions fedn/fedn/network/clients/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6f8728b

Please sign in to comment.