Skip to content

chore: remove debug console.log statements from main.ts#7872

Closed
jeffa-block wants to merge 1 commit intoblock:mainfrom
jeffa-block:jeffa/cleanup-debug-logs-main
Closed

chore: remove debug console.log statements from main.ts#7872
jeffa-block wants to merge 1 commit intoblock:mainfrom
jeffa-block:jeffa/cleanup-debug-logs-main

Conversation

@jeffa-block
Copy link
Copy Markdown
Contributor

Why

main.ts contains debug console.log statements that log raw process output and notification data. These are development artifacts that add noise to the console in production.

What

Remove 3 debug-artifact console.log statements from ui/desktop/src/main.ts:

  • Raw stdout logging from process detection
  • Trimmed stdout logging
  • Unstructured notification logging (NOTIFY)

Intentional logging (e.g., Playwright debug port message) is preserved. 15 console.log statements remain.

How to review

Single file, 3 lines removed. Each removal is a standalone debug artifact — no logic changes.

Testing

  • npm run build in ui/desktop — compiles without errors
  • Runtime: notification handling and process detection work identically (only console output changes)

Remove 3 debug-artifact console.log statements:
- Raw stdout logging from process detection
- Trimmed stdout logging
- Unstructured NOTIFY logging

Intentional logging (e.g., Playwright debug port) is preserved.
15 console.log statements remain — these appear intentional.
DOsinga pushed a commit that referenced this pull request Mar 26, 2026
…code

Squash of cleanup PRs #7872#7883:
- Remove debug console.log from main.ts, App.tsx, renderer.tsx,
  settings components, session sharing, extensions, and core components
- Upgrade extensions config save failure from debug to warn
- Remove stale TODO referencing non-existent doc in experiments.rs
- Remove stale comment in CardHeader.tsx
- Remove 8 unreferenced dead code files (~1,186 lines):
  InterruptionHandler, WaveformVisualizer, RecipeExpandableInfo,
  RecipeInfoModal, ScheduleFromRecipeModal, CustomRadio,
  useRecipeManager, sessionCache
@DOsinga
Copy link
Copy Markdown
Collaborator

DOsinga commented Mar 26, 2026

Squashed into #8142

@DOsinga DOsinga closed this Mar 26, 2026
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.

2 participants