storagevol: Log on XMLDesc errors

This commit is contained in:
Cole Robinson 2014-05-19 17:32:22 -04:00
parent f397d96ca6
commit 51976bba2d
1 changed files with 8 additions and 1 deletions

View File

@ -18,6 +18,8 @@
# MA 02110-1301 USA. # MA 02110-1301 USA.
# #
import logging
from gi.repository import GObject from gi.repository import GObject
from virtinst import pollhelpers from virtinst import pollhelpers
@ -39,7 +41,12 @@ class vmmStorageVolume(vmmLibvirtObject):
def get_name(self): def get_name(self):
return self.get_xmlobj().name return self.get_xmlobj().name
def _XMLDesc(self, flags): def _XMLDesc(self, flags):
return self._backend.XMLDesc(flags) try:
return self._backend.XMLDesc(flags)
except Exception, e:
logging.debug("XMLDesc for vol=%s failed: %s",
self._backend.key(), e)
raise
########### ###########