Skip to content

📝 Excessive Console Logging in Production Code #45

Description

@bitkojine

Found 41 instances of console.log/error/warn statements throughout the source code that should be replaced with the proper logging system.

Files Affected: Multiple files across services, webview, and utils directories

Examples:

  • services/layout-persistence.ts:83,130
  • services/test-discovery-service.ts:78,131,238
  • webview/bootstrap.ts:24,57,71,78
  • webview/world.ts:163,372,429

Issues:

  • Performance overhead from console operations
  • Potential information leakage in production
  • Inconsistent logging approach (mix of console and Logger class)
  • Debug statements left in production code

Recommendations:

  1. Replace all console.* calls with the existing Logger system
  2. Ensure proper log levels are used
  3. Remove debug console.log statements from production builds
  4. Add ESLint rule to prevent console statements in source code

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions