From db3e1290e40c309161c4043619ee5a8a52aa13c5 Mon Sep 17 00:00:00 2001 From: Tanner Collin <git@tannercollin.com> Date: Fri, 3 Dec 2021 06:38:14 +0000 Subject: [PATCH] Log sign submissions --- apiserver/apiserver/api/throttles.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/apiserver/apiserver/api/throttles.py b/apiserver/apiserver/api/throttles.py index b62763e..ade5c33 100644 --- a/apiserver/apiserver/api/throttles.py +++ b/apiserver/apiserver/api/throttles.py @@ -13,7 +13,14 @@ class LoggingThrottle(throttling.BaseThrottle): method = request._request.method path = request._request.path - if path.startswith('/stats/') or path.startswith('/lockout/'): + if method == 'OPTIONS': + return True + + if path.startswith('/lockout/'): + return True + elif path == '/stats/sign/': + pass + elif path.startswith('/stats/'): return True if request.data: