Better error logging when login into queue fails

This commit is contained in:
Diana Huang
2012-12-03 15:04:34 -05:00
parent 22ce306f64
commit 65c56edb5c

View File

@@ -81,7 +81,11 @@ class XQueueInterface(object):
# Log in, then try again
if error and (msg == 'login_required'):
self._login()
(error, content) = self._login()
if error != 0:
# when the login fails
log.debug("Failed to login to queue: %s", content)
return (error, content)
if files_to_upload is not None:
# Need to rewind file pointers
for f in files_to_upload: