Compare commits

...

2 Commits

Author SHA1 Message Date
ed7c142521 fix logging 2025-12-23 09:06:52 +00:00
08f9eef1f0 fix logging 2025-12-23 09:04:32 +00:00

2
app.py
View File

@ -783,9 +783,9 @@ def serve_file(subpath):
user_agent = request.headers.get('User-Agent')
# skip logging on cache hits or on audio GETs (per your rules)
# Log once per real fetch: skip CDN cache requests and HEADs, log GETs (including audio)
do_log = (
not is_cache_request # skip if upstream CDN asked us to cache
and not is_audio_get # skip audio GETs
and request.method != 'HEAD'
)