Commit 4776ccd4 authored by Magnus Knutas's avatar Magnus Knutas
Browse files

With traceback

parent 5aa58935
Pipeline #16358 passed with stages
in 23 seconds
......@@ -2,6 +2,8 @@
publisher
"""
import logging
import traceback
import paho.mqtt.client as mqtt
......@@ -131,5 +133,6 @@ class Publisher():
else:
raise MQTTException("Can't connect too mqtt")
except Exception as e: # pylint: disable=broad-except
LOGGER.exception("MQTT DEAD! %s", e)
LOGGER.exception(
"MQTT DEAD! %s: %s", e, traceback.format_exc())
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