Autotest: add logging to record the IOError in connection to devserver.
BUG=chromium:618510
TEST=None
Change-Id: I76e2dbc49a36a727df62af93f4e39790604a09c0
Reviewed-on: https://chromium-review.googlesource.com/351091
Reviewed-by: Kris Rambish <krisr@chromium.org>
Commit-Queue: Xixuan Wu <xixuan@chromium.org>
Tested-by: Xixuan Wu <xixuan@chromium.org>
diff --git a/client/common_lib/cros/autoupdater.py b/client/common_lib/cros/autoupdater.py
index 91e45b5..142f152 100644
--- a/client/common_lib/cros/autoupdater.py
+++ b/client/common_lib/cros/autoupdater.py
@@ -474,7 +474,8 @@
auserver_host = urlparse.urlparse(self.update_url)[1]
try:
httplib.HTTPConnection(auserver_host).connect()
- except IOError:
+ except IOError as e:
+ logging.debug('http IOError to devserver: %r', e)
raise ChromiumOSError(
'Update server at %s not available' % auserver_host)