Skip to content

Replace [DEBUG] print statements with logging in streaming paths #102

Closed

Description

@CameronBrooks11

What

Replace leftover [DEBUG] print(..., file=sys.stderr) statements with the logging module across the streaming code paths.

Why

These run on the GUI's hot path (the CLI interactive mode is the GUI's streaming backend) and spam stderr during normal pause/resume/cancel/stream operations. They're development leftovers, not user-facing diagnostics. Routing them through logging.debug makes them opt-in and keeps stderr clean.

Where

  • fiberpath_cli/interactive.py:393–507 — 18 print("[DEBUG] ...", file=sys.stderr, flush=True) calls
  • fiberpath/execution/marlin.py — additional [DEBUG] prints in the pause/resume/streaming logic

Acceptance criteria

  • No print("[DEBUG] ...") statements remain in interactive.py or marlin.py
  • Equivalent messages emitted via a module logging.getLogger(__name__) at DEBUG level
  • Default CLI/GUI streaming run produces no debug noise on stderr

Activity

  1. added
    python
    on Jun 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    python

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions