Skip to content

Commit

Permalink
Merge pull request #15 from plehegar/master
Browse files Browse the repository at this point in the history
Added referer in the log
  • Loading branch information
jgraham committed Mar 28, 2014
2 parents d2fb15f + dce071d commit 5683a1e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wptserve/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,8 +214,8 @@ def handle_one_request(self):
else:
err = traceback.format_exc()
response.set_error(500, err)
logger.info("%i %s %s %i" % (response.status[0], request.method,
request.request_path, request.raw_input.length))
logger.info("%i %s %s (%s) %i" % (response.status[0], request.method,
request.request_path, request.headers.get('Referer'), request.raw_input.length))
if not response.writer.content_written:
response.write()

Expand Down

0 comments on commit 5683a1e

Please sign in to comment.