Filter out noisy video routing requests in console
Signed-off-by: Jesús <heckyel@hyperbola.info>
This commit is contained in:
parent
79fd2966cd
commit
263469cd30
10
server.py
10
server.py
@ -250,12 +250,14 @@ def site_dispatch(env, start_response):
|
||||
|
||||
class FilteredRequestLog:
|
||||
'''Don't log noisy thumbnail and avatar requests'''
|
||||
filter_re = re.compile(r"""(?x)^
|
||||
"GET /https://(i[.]ytimg[.]com/|
|
||||
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
|
||||
""")
|
||||
www[.]youtube[.]com/api/timedtext|
|
||||
[-\w]+[.]googlevideo[.]com/).*"\ (200|206)
|
||||
''')
|
||||
|
||||
def __init__(self):
|
||||
pass
|
||||
|
Loading…
x
Reference in New Issue
Block a user