From 2eefcc4553a73a5c8cd8c6772441d13e73571488 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Otgaar?= Date: Mon, 17 Nov 2025 16:09:02 +0100 Subject: [PATCH] chore: fix error messages to be warnings. --- src/control_backend/agents/ri_communication_agent.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/control_backend/agents/ri_communication_agent.py b/src/control_backend/agents/ri_communication_agent.py index b489338..93fbf6c 100644 --- a/src/control_backend/agents/ri_communication_agent.py +++ b/src/control_backend/agents/ri_communication_agent.py @@ -77,7 +77,7 @@ class RICommunicationAgent(BaseAgent): topic = b"ping" data = json.dumps(False).encode() if self.agent.pub_socket is None: - self.agent.logger.error( + self.agent.logger.warning( "Communication agent pub socket not correctly initialized." ) else: @@ -227,7 +227,7 @@ class RICommunicationAgent(BaseAgent): break else: - self.logger.error("Failed to set up %s after %d retries", self.name, max_retries) + self.logger.warning("Failed to set up %s after %d retries", self.name, max_retries) return # Set up ping behaviour @@ -238,7 +238,7 @@ class RICommunicationAgent(BaseAgent): topic = b"ping" data = json.dumps(True).encode() if self.pub_socket is None: - self.logger.error("Communication agent pub socket not correctly initialized.") + self.logger.warning("Communication agent pub socket not correctly initialized.") else: try: await asyncio.wait_for(self.pub_socket.send_multipart([topic, data]), 5)