From d01defe02da56368532d6c93dbcef7ba2640ef48 Mon Sep 17 00:00:00 2001 From: samson0v Date: Tue, 14 May 2024 15:42:18 +0300 Subject: [PATCH] Added log message on connection refused to TB --- thingsboard_gateway/gateway/tb_client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/thingsboard_gateway/gateway/tb_client.py b/thingsboard_gateway/gateway/tb_client.py index 41e784318..062b771c2 100644 --- a/thingsboard_gateway/gateway/tb_client.py +++ b/thingsboard_gateway/gateway/tb_client.py @@ -265,7 +265,7 @@ def connect(self, min_reconnect_delay=10): self.client.connect(keepalive=keep_alive, min_reconnect_delay=self.__min_reconnect_delay) except ConnectionRefusedError: - pass + self.__logger.error("Connection refused. Check ThingsBoard is running.") except Exception as e: self.__logger.exception(e) sleep(1)