Replace print(req.scope) with proper logging in /api/docs
#21
Labels
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: cal/major-domo-database#21
Loading…
Reference in New Issue
Block a user
No description provided.
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?
app/main.py:78— Aprint(req.scope)statement in the Swagger UI handler writes raw request scope data to stdout on every/api/docsload, bypassing the structured rotating-file logger.Priority: medium | Labels: bug, tech-debt
Fixed in PR #54.
Replaced
print(req.scope)withlogger.debug(req.scope)onapp/main.py:78. The module-levelloggeris already in scope, so no other changes were needed.debuglevel is appropriate since this is diagnostic request data.