diff options
author | Lars Wirzenius <lwirzenius@wikimedia.org> | 2019-07-22 20:59:52 +0300 |
---|---|---|
committer | Lars Wirzenius <lwirzenius@wikimedia.org> | 2019-07-22 20:59:52 +0300 |
commit | 30f4fbffd8a818817ffa72a67e825198b6a9802f (patch) | |
tree | 6d0c9623a96294ce192d69862d09026d3f4123e7 /api.py | |
parent | 07cf15875d425ebe34669bb789eea1417931bdbd (diff) | |
download | wmf-ci-arch-30f4fbffd8a818817ffa72a67e825198b6a9802f.tar.gz |
Add: debug logging
Diffstat (limited to 'api.py')
-rwxr-xr-x | api.py | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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) |