Better logging with connection failures.

This commit is contained in:
Cole Robinson 2009-03-09 11:54:46 -04:00
parent 09be6d1702
commit a650c6c6ec

View File

@ -453,10 +453,11 @@ class vmmConnection(gobject.GObject):
try:
self.vmm = libvirt.openReadOnly(self.uri)
self.readOnly = True
logging.info("Read/write connection failed to %s,"
"falling back on read-only." % self.uri)
logging.exception("Read/write connection failed for %s,"
" falling back on read-only." % self.uri)
return
except:
logging.exception("Readonly connection failed.")
pass
return exc_info