Skip to content

tsdhn CLI never configures logging — INFO/DEBUG messages are silently dropped #36

Description

@totallynotdavid

api/main.py and api/worker.py both call logging.basicConfig() on startup, so the FastAPI/worker path already logs correctly.

packages/tsdhn/tsdhn/cli/main.py never configures logging at all. Python's root logger defaults to WARNING with no handler attached, so every logger.info/logger.debug call reachable from a plain tsdhn ... invocation (calculator.py, engine.py, render/*.py, etc.) is silently swallowed — none of it reaches the terminal.

  • Add a logging.basicConfig() (or a small setup_logging() helper) to cli/main.py, gated by a --verbose/-v flag or a TSDHN_LOG_LEVEL env var
  • Confirm it doesn't collide with the rich Console output the CLI already uses for progress bars

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions