Skip to content

feat(wallet): add injectable logger for per-controller init diagnostics#8880

Draft
grypez wants to merge 1 commit into
grypez/wallet-injectable-optionsfrom
grypez/wallet-injectable-logger
Draft

feat(wallet): add injectable logger for per-controller init diagnostics#8880
grypez wants to merge 1 commit into
grypez/wallet-injectable-optionsfrom
grypez/wallet-injectable-logger

Conversation

@grypez
Copy link
Copy Markdown

@grypez grypez commented May 21, 2026

Summary

Part of a stack on top of #8879.

  • Adds optional logger?: Pick<Console, 'info'> to WalletOptions. When provided, emits an info-level line after each controller finishes initializing: [wallet] ${ControllerName}: initialized. Defaults to no-op.
  • Pass console during development to observe initialization order. Useful for diagnosing startup timing or confirming which controllers are included.

Closes #8791

Test plan

  • yarn workspace @metamask/wallet run test passes
  • yarn constraints passes
  • yarn validate:changelog passes

🤖 Generated with Claude Code

Adds optional `logger?: Pick<Console, 'info'>` to WalletOptions. When
provided, emits an info-level line after each controller finishes
initializing: `[wallet] ${ControllerName}: initialized`. Defaults to
no-op. Pass `console` during development to observe initialization order.

Closes #8791

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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