Logging errors if MQTT fails to connect.

This commit is contained in:
Marat Fayzullin 2024-05-23 22:05:42 -04:00
parent c8748d7482
commit b6797b02f3
1 changed files with 1 additions and 1 deletions

View File

@ -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()