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:
|
class FilteredRequestLog:
|
||||||
'''Don't log noisy thumbnail and avatar requests'''
|
'''Don't log noisy thumbnail and avatar requests'''
|
||||||
filter_re = re.compile(r"""(?x)^
|
filter_re = re.compile(r'''(?x)
|
||||||
"GET /https://(i[.]ytimg[.]com/|
|
"GET\ /https://(
|
||||||
|
i[.]ytimg[.]com/|
|
||||||
www[.]youtube[.]com/data/subscription_thumbnails/|
|
www[.]youtube[.]com/data/subscription_thumbnails/|
|
||||||
yt3[.]ggpht[.]com/|
|
yt3[.]ggpht[.]com/|
|
||||||
www[.]youtube[.]com/api/timedtext).*" 200
|
www[.]youtube[.]com/api/timedtext|
|
||||||
""")
|
[-\w]+[.]googlevideo[.]com/).*"\ (200|206)
|
||||||
|
''')
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
pass
|
pass
|
||||||
|
Loading…
x
Reference in New Issue
Block a user