nickberens360/nickberens-astro
chore(logging): replace print() with logging in routes and services
Open
#238 opened on Sep 13, 2025
backendchoregood first issueobservability
Repository metrics
- Stars
- (1 star)
- PR merge metrics
- (No merged PRs in 30d)
Description
Replace print() calls in runtime backend code with structured logging for consistent observability.
Scope
- Primary: backend/routes/health.py error paths (status/rate-limits/welcome-questions).
- Secondary: scan backend/** (exclude backend/scripts/, backend/knowledge/, and tests) for print(.
Acceptance Criteria
- No print() calls remain in backend runtime code paths.
- Errors/exceptions logged via module logger; unexpected exceptions include exc_info=True.
- pytest -q passes.
Notes
- Keep prints in CLI utilities under backend/scripts/ and tests.