Skip to content

Commit af1f6fa

Browse files
committed
pexpect: Make spawn() less verbose
Don't log every binary we spawn by default, instead only do that if debug logging is enabled. But do always print the qemu command we're executing.
1 parent 0ebbd16 commit af1f6fa

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

lib/pexpect_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def __init__(self):
2323
self.bug_patterns = self.default_bug_patterns
2424

2525
def spawn(self, *args, **kwargs):
26-
logging.info("Spawning '%s'" % args)
26+
logging.debug("Spawning '%s'" % args)
2727
self.child = pexpect.spawn(*args, encoding='utf-8', echo=False, **kwargs)
2828
if '--quiet' not in sys.argv:
2929
self.log_to(sys.stdout)

lib/qemu.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,8 @@ def qemu_main(qconf):
285285

286286
cmd = qconf.cmd()
287287

288+
logging.info(f"Running '{cmd}'")
289+
288290
if qconf.interactive:
289291
logging.info("Running interactively ...")
290292
if qconf.host_mount:

0 commit comments

Comments
 (0)