claude-memory/graph/fixes/fix-remove-debug-printreqscope-from-fastapi-docs-route-c9d70b.md

1.4 KiB

id type title tags importance confidence created updated relations
c9d70b95-e7af-44e9-bfe9-e57d59f21b48 fix Fix: remove debug print(req.scope) from FastAPI docs route
paper-dynasty
paper-dynasty-database
fastapi
debug
fix
python
0.5 0.8 2026-03-03T15:05:43.796974+00:00 2026-03-03T15:05:45.301507+00:00
target type direction strength edge_id
947fe7fd-b23c-4e46-8065-51c0519f2756 RELATED_TO outgoing 0.9 a24a459a-f5b8-4af7-9d1d-08e9948f2799
target type direction strength edge_id
c29e169a-896c-4b80-9b69-22c2880d61d7 RELATED_TO outgoing 0.79 3ddcbc0e-54d9-44e4-9ba9-e09b3931fe96
target type direction strength edge_id
25a63239-d077-4a92-8466-0900e16b837f RELATED_TO outgoing 0.86 b161978a-162f-4d96-975a-d89a1d3fb6e2

Problem

app/main.py had print(req.scope) on line 56 inside the get_docs route, logging the full ASGI request scope to stdout on every /api/docs page load.

Root Cause

Debug statement left in production code.

Solution

Removed the single print(req.scope) line. No other changes needed.

Files Changed

  • app/main.py — removed print(req.scope) from get_docs function

Notes

A linter (ruff/black) auto-reformatted the file on save: import formatting, single→double quotes, trailing commas. The issue body acknowledged this reformatting.

PR

cal/paper-dynasty-database#34 (issue #32)