summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2018-11-17 18:55:45 +0200
committerLars Wirzenius <liw@liw.fi>2018-11-17 18:55:45 +0200
commit8d5090880649d83067b5e184ebc1d73f22c508dd (patch)
treeedd0cb950acf59207b1e6021859b1464e2030108
parent808e642e224fa7a46f06baf8e30de979b02c2048 (diff)
downloadeffi-reg-8d5090880649d83067b5e184ebc1d73f22c508dd.tar.gz
Change: log copied headers systematically
-rwxr-xr-xeffiapi3
1 files changed, 3 insertions, 0 deletions
diff --git a/effiapi b/effiapi
index ac68677..58e5d87 100755
--- a/effiapi
+++ b/effiapi
@@ -48,6 +48,7 @@ class MuckAPI:
value = bottle.request.get_header(name)
if value is not None:
h[name] = value
+ logging.debug('Copy header from request: %s: %s', name, value)
return h
def url(self, path):
@@ -144,6 +145,8 @@ class API:
r = bottle.request
logging.info('Request: path=%s', r.path)
logging.info('Request: content type: %s', r.content_type)
+ for h in r.headers:
+ logging.info('Request: headers: %s: %s', h, r.get_header(h))
logging.info('Request: body: %r', r.body.read())
return callback()
return helper