2.2 KiB
2.2 KiB
| id | type | title | tags | importance | confidence | created | updated | relations | ||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| e5d04c92-8f16-44b4-a6f3-94317ea88758 | workflow | PR review: paper-dynasty-database#46 — centralize logging config in main.py |
|
0.4 | 0.8 | 2026-03-04T00:19:08.984576+00:00 | 2026-03-04T00:19:09.401178+00:00 |
|
Review Summary
PR #46 — fix: centralize logging config in main.py (#26) Branch: ai/paper-dynasty-database#26 → next-release Verdict: APPROVED (posted as COMMENT — Gitea blocks self-approval)
Key Findings
What the PR does
- Moves the single authoritative
logging.basicConfig()toapp/main.py, before any sub-module imports - Removes duplicate no-op
basicConfigcalls fromdb_engine.py,dependencies.py, and 30 router files inrouters_v2/ - Removes
LOG_DATAdict anddate/log_levellocals fromdependencies.pyanddb_engine.py - Fixes
"WARN"string level →logging.WARNINGconstant (correctness improvement)
Verified correct
- All 30 router files that keep
import loggingstill uselogging.*calls directly in handlers — no orphaned imports - Remaining imports in
dependencies.pyanddb_engine.pyall still have active uses after cleanup basicConfiginmain.pyexecutes beforedb_engineand router modules are imported — correct ordering
Minor note (non-blocking)
- Date format
f"{datetime.now().year}-{datetime.now().month}-{datetime.now().day}"produces un-padded dates (e.g.2026-3-3). Pre-existing behavior, not a regression.
Gitea Note
Gitea blocks APPROVED state on PRs where the reviewer is the PR author. Posted as COMMENT with explicit APPROVED verdict in body.