Repository navigation
fix(whatsapp): log the credit line error under err so the stack survives - #1470
Merged
Merged
Conversation
Pino's serializer is keyed on `err`; logging `{ error }` dropped the stack
trace (AGENTS.md invariant 20).
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
3 tasks done
khan-umirzakoff
added a commit
to khan-umirzakoff/ChatbotX-Fork-ChatPlus
that referenced
this pull request
Oct 12, 2026
Brings two upstream fixes: mini-apps delete dialog width (ChatbotXIO#1472) and WhatsApp credit line error logging (ChatbotXIO#1470). No migrations. Co-Authored-By: Claude Opus 5.5 <[email protected]>
hello-jackytruong
referenced
this pull request
in hello-jackytruong/ChatWorkAI
Nov 22, 2026
…ves (#1470)
Pino's serializer is keyed on `err`; logging `{ error }` dropped the stack
trace (AGENTS.md invariant 20).
Co-authored-by: Deathgiver <[email protected]>
Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
shareCreditLinelogged its caught error as{ error }. Pino's serializer is keyed onerr, so the stack trace was dropped (AGENTS.md invariant 20). It now logs{ err: error }.} catch (error) { - logger.info({ error }, "Failed to share credit line") + logger.info({ err: error }, "Failed to share credit line") }Found by the new
check:invariantsscript in the companion agent-guidance PR. That PR's lint gate fails until this fix lands.Merge Danger
Door: two-way. This is a one-line logging change.
Blast Radius: log output only.
Test plan
pnpm lintcheck-typesfor@chatbotx.io/integration-whatsapp🤖 Generated with Claude Code