1
0
mirror of https://pagure.io/fedora-qa/createhdds.git synced 2024-11-22 07:13:09 +00:00

Enable virt-install debug logging when we are at debug log level

Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
Adam Williamson 2020-05-09 09:13:19 -07:00
parent 289371a581
commit e03456491b

View File

@ -298,6 +298,9 @@ class VirtInstallImage(object):
"{0}/{1}.ks".format(SCRIPTDIR, self.name), "--location",
loctmp.format(fedoradir, str(self.release), variant, arch), "--name", "createhdds",
"--memory", memsize, "--noreboot", "--wait", "-1"]
if logger.getEffectiveLevel() == logging.DEBUG:
# let's get virt-install debug logs too
args.append("--debug")
if self.bootopts:
args.extend(("--boot", self.bootopts))
if textinst: