mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-01-24 15:26:36 -06:00
Misc improvements to some debug messages
This commit is contained in:
parent
fb3b5a277b
commit
eb33bd34e7
@ -948,6 +948,11 @@ class vmmConnection(vmmGObject):
|
||||
self.idle_emit("state-changed")
|
||||
|
||||
if self.state == self.STATE_ACTIVE:
|
||||
logging.debug("libvirt version=%s",
|
||||
self._backend.local_libvirt_version())
|
||||
logging.debug("daemon version=%s",
|
||||
self._backend.daemon_version())
|
||||
logging.debug("conn version=%s", self._backend.conn_version())
|
||||
logging.debug("%s capabilities:\n%s",
|
||||
self.get_uri(), self.caps.xml)
|
||||
self.schedule_priority_tick(stats_update=True,
|
||||
|
@ -452,7 +452,9 @@ class DistroInstaller(Installer):
|
||||
|
||||
def detect_distro(self, guest):
|
||||
try:
|
||||
return urlfetcher.detectMediaDistro(guest, self.location)
|
||||
ret = urlfetcher.detectMediaDistro(guest, self.location)
|
||||
logging.debug("installer.detect_distro returned=%s", ret)
|
||||
return ret
|
||||
except:
|
||||
logging.exception("Error attempting to detect distro.")
|
||||
return None
|
||||
|
@ -191,6 +191,7 @@ class Guest(XMLBuilder):
|
||||
def _get_os_variant(self):
|
||||
return self._os_variant
|
||||
def _set_os_variant(self, val):
|
||||
logging.debug("Guest.os_variant set to %s", val)
|
||||
val = val.lower()
|
||||
if osdict.lookup_os(val) is None:
|
||||
raise ValueError(_("Distro '%s' does not exist in our dictionary")
|
||||
|
@ -283,7 +283,7 @@ def _distroFromTreeinfo(fetcher, arch, vmtype=None):
|
||||
|
||||
def getDistroStore(guest, fetcher):
|
||||
stores = []
|
||||
logging.debug("Attempting to detect distro:")
|
||||
logging.debug("Finding distro store for location=%s", fetcher.location)
|
||||
|
||||
arch = guest.os.arch
|
||||
_type = guest.os.os_type
|
||||
|
Loading…
Reference in New Issue
Block a user