From 08f9eef1f022711586006e9e5f5a6f9a222626ec Mon Sep 17 00:00:00 2001 From: lelo Date: Tue, 23 Dec 2025 09:04:32 +0000 Subject: [PATCH] fix logging --- app.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app.py b/app.py index 3e798cb..5fca674 100755 --- a/app.py +++ b/app.py @@ -785,8 +785,7 @@ def serve_file(subpath): # skip logging on cache hits or on audio GETs (per your rules) 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' + and (request.method == 'HEAD' or not is_audio_get) # log HEADs; skip audio GETs ) # 3) Pick cache