Fix logging format: use request path instead of file path, clean timestamp

- Log request paths (/big-file.mkv) instead of file system paths
- Custom timestamp format: YYYY-MM-DDTHH:MM:SSZ (no milliseconds)
- Update serve_file to accept request parameter for proper logging
- Strip gemini://host prefix from logged requests for cleaner logs
- Add time crate for custom timestamp formatting
This commit is contained in:
Jeena 2026-01-16 11:34:38 +00:00
parent 3865211554
commit 051157a84c
3 changed files with 22 additions and 4 deletions

View file

@ -15,6 +15,7 @@ toml = "0.8"
serde = { version = "1.0", features = ["derive"] }
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter", "ansi"] }
time = "0.3"
[dev-dependencies]
tempfile = "3"