Update mqtt.py

Changed to logger.exception()
This commit is contained in:
Luarvique L. Luarvique 2024-05-23 15:27:30 -04:00 committed by GitHub
parent c08437ec42
commit cc74dcbe7f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -43,8 +43,8 @@ class MqttReporter(Reporter):
try:
client.connect(host=host, port=port)
except Exception as e:
logger.debug("Exception connecting: " + str(e))
except:
logger.exception("Exception connecting to MQTT server")
threading.Thread(target=client.loop_forever).start()