log every message
Some checks reported errors
continuous-integration/drone/push Build was killed

This commit is contained in:
Torma Kristóf 2020-09-18 15:19:34 +02:00
parent ef6a2861bd
commit 3a7bf30a47
Signed by: tormakris
GPG Key ID: DC83C4F2C41B1047

View File

@ -26,6 +26,7 @@ def handle_status_message(client, userdata, message):
topic=message.topic, topic=message.topic,
payload=message.payload.decode() payload=message.payload.decode()
) )
LOGGER.info(data)
try: try:
ids = data['topic'].replace(f"{config.MQTT_STATUS_TOPIC}/", "").split("/") ids = data['topic'].replace(f"{config.MQTT_STATUS_TOPIC}/", "").split("/")
if len(ids) == 1: if len(ids) == 1: