summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <lwirzenius@wikimedia.org>2019-07-22 20:55:35 +0300
committerLars Wirzenius <lwirzenius@wikimedia.org>2019-07-22 20:55:35 +0300
commit07cf15875d425ebe34669bb789eea1417931bdbd (patch)
tree77bac019a1f723f4a26c0bf1554c97d8a159a99e
parentb25fa26e008851b98d116ed1fb96c5e590af37c5 (diff)
downloadwmf-ci-arch-07cf15875d425ebe34669bb789eea1417931bdbd.tar.gz
Add: debug logging
-rwxr-xr-xapi.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/api.py b/api.py
index cca9ba2..8af97fd 100755
--- a/api.py
+++ b/api.py
@@ -127,7 +127,9 @@ class AccessCheckerPlugin:
logging.debug('AccessCheckerPlugin: checking if access is allowed')
scopes = route['config']['scopes']
authz_needed = scopes is not None
+ 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):
logging.error('Request denied %s %s', r.method, r.path)
return bottle.HTTPError(400)