Skip to content

Log the MQTT messages that are sent and received - #122

Merged
Sholofly merged 1 commit into
devfrom
feat/log-mqtt-traffic
Oct 31, 2026
Merged

Sholofly merged 1 commit into
devfrom
feat/log-mqtt-traffic

Conversation

@Sholofly

Copy link
Copy Markdown
Owner

When a command did not do anything on a box there was no way to see what had been sent to the broker or whether the box answered. At debug level the MQTT client now logs the topic and payload of every published message and every received message (shortened to 1000 characters). A publish that paho reports as failed is logged as a warning.

Document how to enable this and which details to remove from a log before sharing it.

When a command did not do anything on a box there was no way to see what
had been sent to the broker or whether the box answered. At debug level
the MQTT client now logs the topic and payload of every published message
and every received message (shortened to 1000 characters). A publish that
paho reports as failed is logged as a warning.

Document how to enable this and which details to remove from a log before
sharing it.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@Sholofly
Sholofly merged commit ed3c1e4 into dev Oct 31, 2026
4 checks passed
@Sholofly
Sholofly deleted the feat/log-mqtt-traffic branch October 31, 2026 18:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant