Logging errors if MQTT fails to connect.
This commit is contained in:
parent
c8748d7482
commit
b6797b02f3
|
|
@ -44,7 +44,7 @@ class MqttReporter(Reporter):
|
|||
try:
|
||||
client.connect(host=host, port=port)
|
||||
except Exception as e:
|
||||
logger.debug("Exception connecting: " + str(e))
|
||||
logger.error("Exception connecting: " + str(e))
|
||||
|
||||
threading.Thread(target=client.loop_forever).start()
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue