Skip to content

Commit

Permalink
log get_auth request url instead of x-storage-url
Browse files Browse the repository at this point in the history
because if the request gets a 4xx error, then the url will be None, and that's just confusing.

Change-Id: I62729364b9bd279498909dc5cd0d2a1ec5fcd70d
  • Loading branch information
klrmn committed May 23, 2013
1 parent 07311a0 commit 7e84b69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion swiftclient/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,8 @@ def get_auth_1_0(url, user, key, snet):
{'X-Auth-User': user, 'X-Auth-Key': key})
resp = conn.getresponse()
body = resp.read()
url = resp.getheader('x-storage-url')
http_log((url, method,), {}, resp, body)
url = resp.getheader('x-storage-url')

# There is a side-effect on current Rackspace 1.0 server where a
# bad URL would get you that document page and a 200. We error out
Expand Down

0 comments on commit 7e84b69

Please sign in to comment.