From 06974ef41be942111c472b4c7bc7dd93fd87a1a8 Mon Sep 17 00:00:00 2001 From: James Taylor Date: Sat, 5 Sep 2020 23:44:01 -0700 Subject: Don't log noisy caption requests to console --- server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'server.py') diff --git a/server.py b/server.py index 072ed22..c766012 100644 --- a/server.py +++ b/server.py @@ -125,7 +125,7 @@ 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/).*" 200') + 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') def __init__(self): pass def write(self, s): -- cgit v1.2.3