Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
components
libmqtt
Commits
4776ccd4
Commit
4776ccd4
authored
Jun 13, 2018
by
Magnus Knutas
Browse files
With traceback
parent
5aa58935
Pipeline
#16358
passed with stages
in 23 seconds
Changes
1
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
libmqtt/publisher.py
View file @
4776ccd4
...
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment