Skip to content

Refactor logging in ProtobufModule#9536

Merged
thebentern merged 3 commits intomeshtastic:developfrom
NomDeTom:Did-this-ever-work-right
Feb 10, 2026
Merged

Refactor logging in ProtobufModule#9536
thebentern merged 3 commits intomeshtastic:developfrom
NomDeTom:Did-this-ever-work-right

Conversation

@NomDeTom
Copy link
Contributor

@NomDeTom NomDeTom commented Feb 5, 2026

Payload lengths were spurious and weird. I've looked back at the blame, and it genuinely looks as if this has never worked exactly right. Who can tell?

🤝 Attestations

  • I have tested that my proposed changes behave as described.
  • I have tested that my proposed changes do not cause any obvious regressions on the following devices:
    • Heltec (Lora32) V3
    • LilyGo T-Deck
    • LilyGo T-Beam
    • RAK WisBlock 4631
    • Seeed Studio T-1000E tracker card
    • Other (please specify below)

@github-actions github-actions bot added needs-review Needs human review enhancement New feature or request labels Feb 5, 2026
@jp-bennett jp-bennett added the bugfix Pull request that fixes bugs label Feb 5, 2026
@thebentern thebentern requested a review from Copilot February 5, 2026 11:52
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR refactors the logging in ProtobufModule to improve accuracy by moving the "Received" log statement from before the protobuf decode attempt to after successful decode.

Changes:

  • Moves the LOG_INFO statement from before the decode attempt (line 84) to inside the successful decode block (lines 92-93)
  • This ensures only successfully decoded packets are logged as "Received", preventing spurious logs for malformed packets

@thebentern thebentern merged commit a092f6b into meshtastic:develop Feb 10, 2026
65 checks passed
@NomDeTom NomDeTom deleted the Did-this-ever-work-right branch February 10, 2026 12:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix Pull request that fixes bugs enhancement New feature or request needs-review Needs human review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants