From 5c6486215c18352e597c6aadbacac220c07431a5 Mon Sep 17 00:00:00 2001 From: Tanner Collin Date: Wed, 26 Jan 2022 23:57:23 +0000 Subject: [PATCH] Don't log anonymous GET /sessions/ --- apiserver/apiserver/api/throttles.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apiserver/apiserver/api/throttles.py b/apiserver/apiserver/api/throttles.py index ade5c33..c2d0b4f 100644 --- a/apiserver/apiserver/api/throttles.py +++ b/apiserver/apiserver/api/throttles.py @@ -22,6 +22,8 @@ class LoggingThrottle(throttling.BaseThrottle): pass elif path.startswith('/stats/'): return True + elif path == '/sessions/' and user == None: + return True if request.data: data = request.data.dict()