Commit b41917b5 authored by Magnus Knutas's avatar Magnus Knutas
Browse files

Exception logging

parent 4776ccd4
Pipeline #16361 passed with stages
in 22 seconds
...@@ -2,7 +2,6 @@ ...@@ -2,7 +2,6 @@
publisher publisher
""" """
import logging import logging
import traceback
import paho.mqtt.client as mqtt import paho.mqtt.client as mqtt
...@@ -134,5 +133,5 @@ class Publisher(): ...@@ -134,5 +133,5 @@ class Publisher():
raise MQTTException("Can't connect too mqtt") raise MQTTException("Can't connect too mqtt")
except Exception as e: # pylint: disable=broad-except except Exception as e: # pylint: disable=broad-except
LOGGER.exception( LOGGER.exception(
"MQTT DEAD! %s: %s", e, traceback.format_exc()) "MQTT DEAD!", e)
break break
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment