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
1 changed files with 3 additions and 0 deletions

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: