1
0
mirror of https://github.com/thingsboard/thingsboard-gateway synced 2025-10-26 22:31:42 +08:00

Added log message on connection refused to TB

This commit is contained in:
samson0v
2024-05-14 15:42:18 +03:00
parent 67ff88c666
commit d01defe02d

View File

@@ -265,7 +265,7 @@ class TBClient(threading.Thread):
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)