From 3dd1a857bc9755fb81fe81d14faaf48606e72afc Mon Sep 17 00:00:00 2001 From: Roman Date: Tue, 7 May 2024 20:36:01 +0800 Subject: [PATCH] fix: remove debug from health response parsing --- src/node/waku_node.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/node/waku_node.py b/src/node/waku_node.py index 384b19b3..89144b99 100644 --- a/src/node/waku_node.py +++ b/src/node/waku_node.py @@ -190,12 +190,10 @@ class WakuNode: @retry(stop=stop_after_delay(timeout_duration), wait=wait_fixed(0.1), reraise=True) def check_healthy(node=self): self.health_response = node.health() - h = self.health_response - logger.debug(f"Health endpoint response object {h}") - if h["nodeHealth"] and h["nodeHealth"] != "Ready": + if self.health_response["nodeHealth"] and self.health_response["nodeHealth"] != "Ready": raise AssertionError("Waiting for the node health status: Ready") - for p in h["protocolsHealth"]: + for p in self.health_response["protocolsHealth"]: if p["Rln Relay"] and p["Rln Relay"] != "Ready": raise AssertionError("Waiting for the Rln relay status: Ready")