Skip to content

Commit

Permalink
Correct path in request logging
Browse files Browse the repository at this point in the history
The path didn't include the version (e.g., /v3), so you might not
be able to tell if it's a v2 or v3 request.

Change-Id: I3e66a4662ff0966841b83efcc20f169b8485aa11
  • Loading branch information
Brant Knudson committed Mar 19, 2015
1 parent a80b98f commit ce6f0fc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion keystone/common/wsgi.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,9 +228,10 @@ def __call__(self, req):
# response code between GET and HEAD requests. The HTTP status should
# be the same.
req_method = req.environ['REQUEST_METHOD'].upper()
path = req.environ.get('RAW_PATH_INFO') or req.environ['PATH_INFO']
LOG.info('%(req_method)s %(path)s%(params)s', {
'req_method': req_method,
'path': context['path'],
'path': path,
'params': '?' + urllib.urlencode(req.params) if req.params else ''}
)

Expand Down

0 comments on commit ce6f0fc

Please sign in to comment.