Replace print(req.scope) with proper logging in /api/docs #21

Closed
opened 2026-02-20 06:49:43 +00:00 by cal · 1 comment
Owner

app/main.py:78 — A print(req.scope) statement in the Swagger UI handler writes raw request scope data to stdout on every /api/docs load, bypassing the structured rotating-file logger.

Priority: medium | Labels: bug, tech-debt

`app/main.py:78` — A `print(req.scope)` statement in the Swagger UI handler writes raw request scope data to stdout on every `/api/docs` load, bypassing the structured rotating-file logger. **Priority**: medium | **Labels**: bug, tech-debt
cal added the
ai-working
label 2026-03-06 01:01:03 +00:00
cal removed the
ai-working
label 2026-03-06 01:02:35 +00:00
Author
Owner

Fixed in PR #54.

Replaced print(req.scope) with logger.debug(req.scope) on app/main.py:78. The module-level logger is already in scope, so no other changes were needed. debug level is appropriate since this is diagnostic request data.

Fixed in PR #54. Replaced `print(req.scope)` with `logger.debug(req.scope)` on `app/main.py:78`. The module-level `logger` is already in scope, so no other changes were needed. `debug` level is appropriate since this is diagnostic request data.
cal added the
ai-pr-opened
label 2026-03-06 01:02:40 +00:00
cal closed this issue 2026-03-10 18:26:15 +00:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: cal/major-domo-database#21
No description provided.