diff options
author | Lars Wirzenius <lwirzenius@wikimedia.org> | 2019-07-22 20:55:35 +0300 |
---|---|---|
committer | Lars Wirzenius <lwirzenius@wikimedia.org> | 2019-07-22 20:55:35 +0300 |
commit | 07cf15875d425ebe34669bb789eea1417931bdbd (patch) | |
tree | 77bac019a1f723f4a26c0bf1554c97d8a159a99e /api.py | |
parent | b25fa26e008851b98d116ed1fb96c5e590af37c5 (diff) | |
download | wmf-ci-arch-07cf15875d425ebe34669bb789eea1417931bdbd.tar.gz |
Add: debug logging
Diffstat (limited to 'api.py')
-rwxr-xr-x | api.py | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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) |