From cc74dcbe7fa629f5cb2abf163fd7e80ee4e9d734 Mon Sep 17 00:00:00 2001 From: "Luarvique L. Luarvique" Date: Thu, 23 May 2024 15:27:30 -0400 Subject: [PATCH] Update mqtt.py Changed to logger.exception() --- owrx/reporting/mqtt.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/owrx/reporting/mqtt.py b/owrx/reporting/mqtt.py index 1d21e17e..16ca75b0 100644 --- a/owrx/reporting/mqtt.py +++ b/owrx/reporting/mqtt.py @@ -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()