Skip to content

refactor: consolidate logger usage #486

Description

@nanaf6203-bit

Summary

Logger usage is inconsistent: some files import logger from @/utils/logger, others from @/utils/structuredLogger; some call console.error directly.

Affected area

Whole repo. Notable offenders: src/components/ViewToggle.tsx, src/components/TransactionDetailsModal.tsx, src/utils/earlyErrorSuppression.ts.

Expected behaviour

Choose one canonical logger; deprecate the other in favour of a thin wrapper. Provide a single import path.

Acceptance criteria

  • Single canonical logger documented in README.
  • Codemod or ESLint rule applied to migrate remaining files.
  • No references to the deprecated module remain outside the wrapper.

Filed automatically as part of the PropChain code-review sweep.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave programpriority/p3P3 — nice to haverefactorCode health / refactor (no behaviour change)

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions