Merge pull request #785 from mmarchetti/fix/json-header-error

Fix secondary error that occurs during handling of HTTP 500 status
pull/787/head
Thomas Kluyver 10 years ago
commit bdb8ca88ce

@ -43,6 +43,6 @@ def log_request(handler):
msg = msg + ' referer={referer}'
if status >= 500 and status != 502:
# log all headers if it caused an error
log_method(json.dumps(request.headers, indent=2))
log_method(json.dumps(dict(request.headers), indent=2))
log_method(msg.format(**ns))

Loading…
Cancel
Save