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
This commit is contained in:
Leah Klearman committed 2013-05-22 18:17:59 -07:00
1 parent 07311a0639
commit 7e84b69291
1 file changed
+1 -1
+1 -1
View File
@@ -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