From e03456491ba98092dfe0528334b7c953d273cf09 Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Sat, 9 May 2020 09:13:19 -0700 Subject: [PATCH] Enable virt-install debug logging when we are at debug log level Signed-off-by: Adam Williamson --- createhdds.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/createhdds.py b/createhdds.py index 3514143..b782fe1 100755 --- a/createhdds.py +++ b/createhdds.py @@ -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: