Log to a file instead of only stdout
All app and uvicorn logging now goes to logs/app.log (rotating, 10MB x5), and a catch-all exception handler logs full tracebacks there before returning a generic 500 — so an error is traceable to its cause without depending on how the process was launched. logs/ is gitignored, like the other runtime artifacts. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
ddaca5520e
commit
7e5c372833
3 files changed
+44
-2
No files matched your search
@@ -6,3 +6,4 @@ __pycache__/
|
||||
master.xprv.enc
|
||||
.pytest_cache/
|
||||
*.egg-info/
|
||||
logs/
|
||||
Reference in new issue
Block a user