mirror of
https://github.com/pirate/ArchiveBox.git
synced 2025-08-21 13:52:30 +02:00
ignore healtcheck requests in daphne logs
This commit is contained in:
@@ -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"):
|
||||
|
Reference in New Issue
Block a user