From a97396b36b1d3f3beeb7533d98b528cd633f33e5 Mon Sep 17 00:00:00 2001 From: Cal Corum Date: Tue, 3 Mar 2026 09:05:43 -0600 Subject: [PATCH] store: Fix: remove debug print(req.scope) from FastAPI docs route --- ...reqscope-from-fastapi-docs-route-c9d70b.md | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 graph/fixes/fix-remove-debug-printreqscope-from-fastapi-docs-route-c9d70b.md diff --git a/graph/fixes/fix-remove-debug-printreqscope-from-fastapi-docs-route-c9d70b.md b/graph/fixes/fix-remove-debug-printreqscope-from-fastapi-docs-route-c9d70b.md new file mode 100644 index 00000000000..b3ce052402b --- /dev/null +++ b/graph/fixes/fix-remove-debug-printreqscope-from-fastapi-docs-route-c9d70b.md @@ -0,0 +1,28 @@ +--- +id: c9d70b95-e7af-44e9-bfe9-e57d59f21b48 +type: fix +title: "Fix: remove debug print(req.scope) from FastAPI docs route" +tags: [paper-dynasty, paper-dynasty-database, fastapi, debug, fix, python] +importance: 0.5 +confidence: 0.8 +created: "2026-03-03T15:05:43.796974+00:00" +updated: "2026-03-03T15:05:43.796974+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` — 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 +https://git.manticorum.com/cal/paper-dynasty-database/pulls/34 (issue #32)