-
Notifications
You must be signed in to change notification settings - Fork 81
Open
Description
Description
So MANY console.log statements across the codebase! Found 72 matches in 8 files!
Why this is a problem:
- Pollutes console output during normal operation
- Makes debugging actual issues harder
- Looks unprofessional for users
Files with excessive logging:
- src/systemPromptSync.ts - 18 console.log statements
- tools/promptExtractor.js - 5 console.log statements
- src/patches/systemPrompts.ts - 2 console.log statements
- src/patches/index.ts - 13 console.log statements
- src/utils.ts - 1 console.log statement
- src/index.tsx - 9 console.log statements
- src/patches/conversationTitle.ts - 1 console.log statement
- src/ui/components/ThemePreview.tsx - 2 console.log statements
Proposed Solution
- Implement proper logging system with log levels (debug, info, warn, error)
- Remove or replace production console.log with proper logger
- Add environment variable to control debug output (e.g.,
DEBUG=tweakcc) - Keep error logging, move informational logs behind debug flag
Priority
- 🟡 Medium - Code quality & UX improvement
Labels
enhancement, code-quality, logging
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels