Skip to content
This repository has been archived by the owner on Mar 24, 2021. It is now read-only.

Commit

Permalink
Add request method and url to response log
Browse files Browse the repository at this point in the history
At the moment we can't relate the response to a request.
  • Loading branch information
robyoung committed Nov 22, 2013
1 parent ae89be5 commit 9f4ffd0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion backdrop/core/log_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ def log_request():

def create_response_logger(app):
def log_response(response):
app.logger.info("response: %s" % response.status)
app.logger.info(
"response: %s - %s - %s" % (
request.method, request.url, response.status
)
)
return response
return log_response

0 comments on commit 9f4ffd0

Please sign in to comment.