feat: Add log analysis tool

This commit is contained in:
2026-05-09 22:41:14 +03:00
parent 7a668aef69
commit 9396dbeb24
4 changed files with 599 additions and 1 deletions
+15
View File
@@ -295,6 +295,21 @@ The backend logs:
This is intentional because the app is designed as a game/demo environment rather than a secure production system.
For log analysis, the repository also includes `backend/log_report.py`.
It reads the JSONL backend log and prints a session-oriented report to `stdout`:
- one block per `session_id`
- full request/response history for that session
- filter results attached to each request
- `guessed: yes` or `guessed: no` at the session level
Example:
```bash
cd backend
uv run python log_report.py logs/backend.log
```
## Notes
- `web-out/` is generated build output and should be rebuilt after frontend changes