1.4 KiB
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 |
|
0.5 | 0.8 | 2026-03-03T15:05:43.796974+00:00 | 2026-03-03T15:05:45.301507+00:00 |
|
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— removedprint(req.scope)fromget_docsfunction
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)