summaryrefslogtreecommitdiff
path: root/virtconv/ovf.py
diff options
context:
space:
mode:
Diffstat (limited to 'virtconv/ovf.py')
-rw-r--r--virtconv/ovf.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/virtconv/ovf.py b/virtconv/ovf.py
index 24151151..12b64028 100644
--- a/virtconv/ovf.py
+++ b/virtconv/ovf.py
@@ -5,11 +5,11 @@
# See the COPYING file in the top-level directory.
#
-import logging
import os
import xml.etree.ElementTree
import virtinst
+from virtinst import log
from .formats import parser_class
@@ -184,7 +184,7 @@ def _import_file(conn, input_file):
if any([p for p in parsed_sections if p in env_node.tag]):
continue
- logging.debug("Unhandled XML section '%s'",
+ log.debug("Unhandled XML section '%s'",
env_node.tag)
if not _convert_bool_val(env_node.attrib.get("required")):
@@ -274,11 +274,11 @@ class ovf_parser(parser_class):
root = xml.etree.ElementTree.parse(input_file).getroot()
return root.tag == ("{%s}Envelope" % OVF_NAMESPACES["ovf"])
except Exception:
- logging.debug("Error parsing OVF XML", exc_info=True)
+ log.debug("Error parsing OVF XML", exc_info=True)
return False
@staticmethod
def export_libvirt(conn, input_file):
- logging.debug("Importing OVF XML:\n%s", open(input_file).read())
+ log.debug("Importing OVF XML:\n%s", open(input_file).read())
return _import_file(conn, input_file)