Include subscriber information when MQTT message can't be decoded (#28062)

This commit is contained in:
Erik Montnemery authored and Pascal Vizeli committed 2019-10-21 17:34:58 +02:00
1 parent 70ddab2f3c
commit 643257d911
1 file changed
+2 -1
+2 -1
View File
@@ -925,10 +925,11 @@ class MQTT:
payload = msg.payload.decode(subscription.encoding)
except (AttributeError, UnicodeDecodeError):
_LOGGER.warning(
"Can't decode payload %s on %s with encoding %s",
"Can't decode payload %s on %s with encoding %s (for %s)",
msg.payload,
msg.topic,
subscription.encoding,
subscription.callback,
)
continue