Structured, leveled logging in log.py #252
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Dimension: Resilience (4 → 5)
bot_bottle/log.pyis 37 lines of bareprint(..., file=sys.stderr)wrappers with no levels or attributable context. Sidecar/RPC failures (supervise_server.py:519,cli/supervise.py:293) emit flat strings that can't be filtered or correlated.Proposed: add a leveled logger (or at minimum a
context=kwarg threaded throughinfo/warn/error) so failures carry attributable, filterable context. Keep stdlib-only per AGENTS.md (loggingis fine).Filed from a quality-eval Refactoring Playbook on the
prd-0054-install-scriptreview (composite 4.6/5). Medium priority: lift a dimension from 3 → 4/5; not a correctness defect.