Enable PAHO MQTT client logging (#38767)

This commit is contained in:
Erik Montnemery authored and GitHub committed 2020-08-11 22:54:41 +02:00
1 parent 192fe58fc8
commit 4fa346278c
1 file changed
+3
@@ -666,6 +666,9 @@ class MQTT:
else:
self._mqttc = mqtt.Client(client_id, protocol=proto)
# Enable logging
self._mqttc.enable_logger()
username = self.conf.get(CONF_USERNAME)
password = self.conf.get(CONF_PASSWORD)
if username is not None: