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 dc62d8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backdrop/core/log_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,6 @@ 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 dc62d8e

Please sign in to comment.