summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <lwirzenius@wikimedia.org>2019-07-22 20:59:52 +0300
committerLars Wirzenius <lwirzenius@wikimedia.org>2019-07-22 20:59:52 +0300
commit30f4fbffd8a818817ffa72a67e825198b6a9802f (patch)
tree6d0c9623a96294ce192d69862d09026d3f4123e7
parent07cf15875d425ebe34669bb789eea1417931bdbd (diff)
downloadwmf-ci-arch-30f4fbffd8a818817ffa72a67e825198b6a9802f.tar.gz
Add: debug logging
-rwxr-xr-xapi.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/api.py b/api.py
index 8af97fd..972b334 100755
--- a/api.py
+++ b/api.py
@@ -130,7 +130,9 @@ class AccessCheckerPlugin:
logging.debug('authz_needed: %r', authz_needed)
if authz_needed:
logging.debug('checking if access is allowed: %r', scopes)
- if self._checker.access_is_allowed(r.headers, scopes):
+ x = self._checker.access_is_allowed(r.headers, scopes)
+ logging.debug('x: %r', x)
+ if not x:
logging.error('Request denied %s %s', r.method, r.path)
return bottle.HTTPError(400)