Ignore noisy requests

This commit is contained in:
Tanner Collin 2021-11-29 01:21:52 +00:00
parent 065afd966d
commit e8557cbf37

View File

@ -13,6 +13,9 @@ class LoggingThrottle(throttling.BaseThrottle):
method = request._request.method method = request._request.method
path = request._request.path path = request._request.path
if path.startswith('/stats/') or path.startswith('/lockout/'):
return True
if request.data: if request.data:
data = request.data.dict() data = request.data.dict()
for key in ['password', 'password1', 'password2', 'old_password', 'new_password1', 'new_password2']: for key in ['password', 'password1', 'password2', 'old_password', 'new_password1', 'new_password2']: