mirror of
https://github.com/ArchiveBox/ArchiveBox
synced 2024-11-10 06:34:16 +00:00
ignore healtcheck requests in daphne logs
This commit is contained in:
parent
1ce09b88d7
commit
04cb6bdfd6
1 changed files with 2 additions and 0 deletions
|
@ -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"):
|
||||
|
|
Loading…
Reference in a new issue