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 @@
publisher
"""
import logging
import traceback
import paho.mqtt.client as mqtt
......@@ -134,5 +133,5 @@ class Publisher():
raise MQTTException("Can't connect too mqtt")
except Exception as e: # pylint: disable=broad-except
LOGGER.exception(
"MQTT DEAD! %s: %s", e, traceback.format_exc())
"MQTT DEAD!", e)
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