Skip to content

[Tech-debt] 13 source files use console.log/error/warn instead of the structured logging service #753

Description

@RUKAYAT-CODER

Overview

The project has a well-implemented Pino-based logging system in src/lib/logging/index.ts, but at least 13 files bypass it in favor of raw console.* calls. Console output is not structured, not captured by the log aggregator, and cannot be correlated with request IDs or filtered by log level in production.

Specifications

Features:

  • All log output goes through createLogger() from src/lib/logging/index.ts
  • No console.log, console.error, or console.warn calls exist in production code paths

Tasks:

  • Run grep -rn console\. src/ --include=*.ts --include=*.tsx to find all occurrences
  • Replace each call with the appropriate logger method
  • Add an ESLint rule no-console: error to .eslintrc.json to prevent regression
  • Allow console.* only in scripts and test files via .eslintignore

Impacted Files:

  • All src/ files containing console.log, console.error, or console.warn
  • .eslintrc.json

Acceptance Criteria

  • Zero console.* calls remain in src/ production code
  • The ESLint rule prevents future regressions

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave programtech-debtTechnical debt cleanup

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions