From 4f5fee3b9b3f57b10af2acc976da8a60f835c52b Mon Sep 17 00:00:00 2001 From: Konstantinos Panayiotou Date: Thu, 19 Dec 2024 21:04:24 +0200 Subject: [PATCH] Logging Improvements --- commlib/pubsub.py | 3 +-- commlib/rpc.py | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/commlib/pubsub.py b/commlib/pubsub.py index 73692f3..c0d770a 100644 --- a/commlib/pubsub.py +++ b/commlib/pubsub.py @@ -133,8 +133,7 @@ def run(self) -> None: self._main_thread.start() self._state = EndpointState.CONNECTED else: - self.logger().debug( - f"Transport already connected - cannot run {self.__class__.__name__}") + self.logger().debug("Transport already connected - Skipping") def stop(self) -> None: """ diff --git a/commlib/rpc.py b/commlib/rpc.py index 745023e..65f8220 100644 --- a/commlib/rpc.py +++ b/commlib/rpc.py @@ -233,7 +233,7 @@ def run(self) -> None: self._state = EndpointState.CONNECTED else: self.log.error( - f"Transport already connected - cannot run {self.__class__.__name__}") + "Transport already connected - Skipping") def stop(self): """