summaryrefslogtreecommitdiff
path: root/swiftclient/client.py
diff options
context:
space:
mode:
authorLeah Klearman <lklrmn@gmail.com>2013-05-22 18:17:59 -0700
committerLeah Klearman <lklrmn@gmail.com>2013-05-22 18:17:59 -0700
commit7e84b69291efbc07be6ced17b24ffa42efdc67c0 (patch)
tree98c4487149404905ee0a5bc1c3f0a9fdaebd67f4 /swiftclient/client.py
parent07311a0639ba06d2b2ed190dc49095df95ae669b (diff)
downloadpython-swiftclient-7e84b69291efbc07be6ced17b24ffa42efdc67c0.tar.gz
log get_auth request url instead of x-storage-url
because if the request gets a 4xx error, then the url will be None, and that's just confusing. Change-Id: I62729364b9bd279498909dc5cd0d2a1ec5fcd70d
Diffstat (limited to 'swiftclient/client.py')
-rw-r--r--swiftclient/client.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/swiftclient/client.py b/swiftclient/client.py
index 11e65bc..afd85f0 100644
--- a/swiftclient/client.py
+++ b/swiftclient/client.py
@@ -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