claude-memory/graph/fixes/fix-remove-debug-printreqscope-from-paper-dynasty-database-g-947fe7.md

1.0 KiB

id type title tags importance confidence created updated
947fe7fd-b23c-4e46-8065-51c0519f2756 fix Fix: Remove debug print(req.scope) from paper-dynasty-database get_docs route
paper-dynasty
fastapi
python
debug-cleanup
tech-debt
0.4 0.8 2026-03-03T04:36:40.503397+00:00 2026-03-03T04:36:40.503397+00:00

Problem

app/main.py:56 in paper-dynasty-database had print(req.scope) inside the get_docs FastAPI route. This logged the full ASGI request scope dict to stdout on every /api/docs page load — debug code left in production.

Fix

Removed the single print(req.scope) line. The route still uses req.scope.get('root_path') for the openapi URL — only the debug print was removed.

Files Changed

  • app/main.py — removed line 56 print(req.scope)

Notes

  • Linter (ruff/black) auto-reformatted the file on save: import reflow, single→double quotes, trailing commas. Functional diff is just the removed print.
  • PR #32: cal/paper-dynasty-database#32