From 04cb6bdfd628f61ae47afbc2bc2abefb6fd1dc0e Mon Sep 17 00:00:00 2001 From: Nick Sweeting Date: Tue, 10 Sep 2024 00:05:13 -0700 Subject: [PATCH] ignore healtcheck requests in daphne logs --- archivebox/monkey_patches.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/archivebox/monkey_patches.py b/archivebox/monkey_patches.py index ce137ba8..423df148 100644 --- a/archivebox/monkey_patches.py +++ b/archivebox/monkey_patches.py @@ -33,6 +33,8 @@ class ModifiedAccessLogGenerator(access.AccessLogGenerator): # Ignore noisy requests to staticfiles / favicons / etc. if 'GET /static/' in request: return + if "GET /health/" in request: + return if 'GET /admin/jsi18n/' in request: return if request.endswith("/favicon.ico") or request.endswith("/robots.txt") or request.endswith("/screenshot.png"):