diff options
Diffstat (limited to 'server.py')
-rw-r--r-- | server.py | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -245,7 +245,12 @@ def site_dispatch(env, start_response): class FilteredRequestLog: '''Don't log noisy thumbnail and avatar requests''' - filter_re = re.compile(r'"GET /https://(i\.ytimg\.com/|www\.youtube\.com/data/subscription_thumbnails/|yt3\.ggpht\.com/|www\.youtube\.com/api/timedtext).*" 200') + filter_re = re.compile(r"""(?x)^ + "GET /https://(i[.]ytimg[.]com/| + www[.]youtube[.]com/data/subscription_thumbnails/| + yt3[.]ggpht[.]com/| + www[.]youtube[.]com/api/timedtext).*" 200 + """) def __init__(self): pass |