From 8d5090880649d83067b5e184ebc1d73f22c508dd Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Sat, 17 Nov 2018 18:55:45 +0200 Subject: Change: log copied headers systematically --- effiapi | 3 +++ 1 file changed, 3 insertions(+) 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 -- cgit v1.2.1