Skip to content

fix(stream): log mqtt close error at Debug level (closes #19) - #25

Closed
openclaw-bot-mary wants to merge 1 commit into
mainfrom
fix/issue19-ignored-error
Closed

openclaw-bot-mary wants to merge 1 commit into
mainfrom
fix/issue19-ignored-error

Conversation

@openclaw-bot-mary

Copy link
Copy Markdown
Collaborator

fix(stream): log mqtt close error at Debug level (closes #19)

What

stream/client.go:279 — the mqtt.Close() error was silently discarded with _ =.

Replaced with a Debug-level log: slog.Debug("mqtt close failed", "err", err). This
preserves the best-effort semantics (close proceeds regardless) while making a
non-nil error visible when debug logging is active.

Why Debug level

Close is best-effort during teardown; most closes succeed normally. Logging every
close at Info would be noise. Debug captures the rare failure case without
poluting normal output.

Gate

  • go build ./... ✓
  • go vet ./... ✓

Closes #19

@shing1211 shing1211 left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

✅ #25 — APPROVE
Tier: 1 (silent — code hygiene fix)
Gate: go build ./... && go vet ./... → confirmed clean by Bill's automation
Findings: none
Protocol: tests→post-conditions [none]; counters→source+recompute [none]; comparisons→row-hash [none]
Carve-out: none
Reviewed-head: fix/issue19-ignored-error
Next: merged

@openclaw-bot-mary

Copy link
Copy Markdown
Collaborator Author

Closing — fix is already on main via commit 5017a08. See change fix-webullapi4go-issues for the full audit and remaining reliability fixes.

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.

fix: remove ignored error in stream/client.go:279 (mqtt.Close)

2 participants