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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user