diff options
author | Lars Wirzenius <liw@liw.fi> | 2018-11-17 18:55:45 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2018-11-17 18:55:45 +0200 |
commit | 8d5090880649d83067b5e184ebc1d73f22c508dd (patch) | |
tree | edd0cb950acf59207b1e6021859b1464e2030108 | |
parent | 808e642e224fa7a46f06baf8e30de979b02c2048 (diff) | |
download | effi-reg-8d5090880649d83067b5e184ebc1d73f22c508dd.tar.gz |
Change: log copied headers systematically
-rwxr-xr-x | effiapi | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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 |