mirror of
https://github.com/virt-manager/virt-manager.git
synced 2024-10-28 19:55:29 +03:00
Better logging with connection failures.
This commit is contained in:
parent
09be6d1702
commit
a650c6c6ec
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user