Replace 14 print() statements with proper logging #29

Closed
opened 2026-03-14 13:33:34 +00:00 by Rockachopa · 1 comment
Owner

What

14 print() statements in production code:

  • timmy/backends.py — 3 prints (in the render methods)
  • timmy/memory_migrate.py — 8 prints (entire file uses print instead of logging)
  • timmy/cascade_adapter.py — 2 prints
  • infrastructure/events/bus.py — 1 print

What to do

Replace each print() with the appropriate logger.info() or logger.debug(). The backends.py prints in _render() methods are intentional CLI output — those can stay or use typer.echo() instead.

Estimated effort: 15 minutes

## What 14 `print()` statements in production code: - `timmy/backends.py` — 3 prints (in the render methods) - `timmy/memory_migrate.py` — 8 prints (entire file uses print instead of logging) - `timmy/cascade_adapter.py` — 2 prints - `infrastructure/events/bus.py` — 1 print ## What to do Replace each `print()` with the appropriate `logger.info()` or `logger.debug()`. The backends.py prints in `_render()` methods are intentional CLI output — those can stay or use `typer.echo()` instead. ## Estimated effort: 15 minutes
Collaborator

Verified: all print() statements in memory_migrate.py, cascade_adapter.py, and events/bus.py have already been replaced with logger calls. The 3 remaining print() in backends.py are intentional CLI output (fallback when rich/Markdown not available). Closing as already fixed.

Verified: all print() statements in memory_migrate.py, cascade_adapter.py, and events/bus.py have already been replaced with logger calls. The 3 remaining print() in backends.py are intentional CLI output (fallback when rich/Markdown not available). Closing as already fixed.
Sign in to join this conversation.
No Label
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Rockachopa/Timmy-time-dashboard#29