From e8557cbf37fec6968ed06036167fec08fb7729a4 Mon Sep 17 00:00:00 2001 From: Tanner Collin Date: Mon, 29 Nov 2021 01:21:52 +0000 Subject: [PATCH] Ignore noisy requests --- apiserver/apiserver/api/throttles.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apiserver/apiserver/api/throttles.py b/apiserver/apiserver/api/throttles.py index c7b7213..95f4cdb 100644 --- a/apiserver/apiserver/api/throttles.py +++ b/apiserver/apiserver/api/throttles.py @@ -13,6 +13,9 @@ class LoggingThrottle(throttling.BaseThrottle): method = request._request.method path = request._request.path + if path.startswith('/stats/') or path.startswith('/lockout/'): + return True + if request.data: data = request.data.dict() for key in ['password', 'password1', 'password2', 'old_password', 'new_password1', 'new_password2']: