fix logging
This commit is contained in:
parent
cd2592a4b1
commit
08f9eef1f0
3
app.py
3
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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user