summaryrefslogtreecommitdiff
path: root/muck_poc
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2019-06-10 11:20:28 +0300
committerLars Wirzenius <liw@liw.fi>2019-06-10 11:21:02 +0300
commit85c12bbb1d384263ac46fc9ac8bcb4dfc29d8c37 (patch)
treefd9ae09f03953294307db8486c885d30f5ba7fe0 /muck_poc
parentc6afe5d6597d3648bc1c6bc2e25102cad05b2227 (diff)
downloadmuck-poc-85c12bbb1d384263ac46fc9ac8bcb4dfc29d8c37.tar.gz
Fix: typo in log message
Diffstat (limited to 'muck_poc')
-rwxr-xr-xmuck_poc6
1 files changed, 5 insertions, 1 deletions
diff --git a/muck_poc b/muck_poc
index e0b1729..3b070e1 100755
--- a/muck_poc
+++ b/muck_poc
@@ -80,6 +80,10 @@ class MuckAPI:
try:
rr = bottle.request
logging.info('Request: %s %s', rr.method, rr.path)
+ logging.debug('Request headers:')
+ for h in rr.headers:
+ logging.debug(' %s: %r', h, rr.headers[h])
+ logging.debug('End of request headers')
r = muck.Request(method=rr.method)
r.add_headers(rr.headers)
if self._ac.request_is_allowed(r, req_method, [req_scope]):
@@ -229,7 +233,7 @@ class MuckAPI:
logging.info(
'Pretending to be %s (claims: %r)', claims['sub'], claims)
else:
- logging.info('Reuqest by normal user')
+ logging.info('Request by normal user')
return claims