Closed quantumew closed 7 years ago
I think it would be cool to do something like
my_list = [
response.status_code
]
for key, value in response.headers.iteritems():
my_list.append("{0}: {1}".format(key, value))
logger.info("\n".join(my_list))
Also, could you instead make the verb part of the main logging format string and add stuff to the RequestLogFilter for it?
@kyle-long Good idea. hopefully this is close enough 58e8b5571ab52f364e5eeeab436c89a78bf974a9 - The log headers is used by request and response headers so I just made that function redact it instead.
Codecov Report
100% <100%> (ø)
100% <100%> (ø)
Continue to review full report at Codecov.