Misc improvements to some debug messages

This commit is contained in:
Cole Robinson 2013-11-09 18:17:29 -05:00
parent fb3b5a277b
commit eb33bd34e7
4 changed files with 10 additions and 2 deletions

View File

@ -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,

View File

@ -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

View File

@ -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")

View File

@ -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