]> git.proxmox.com Git - mirror_qemu.git/commitdiff
scripts/qemu.py: log QEMU launch command line
authorCleber Rosa <crosa@redhat.com>
Sat, 2 Feb 2019 00:55:51 +0000 (19:55 -0500)
committerCleber Rosa <crosa@redhat.com>
Fri, 22 Feb 2019 19:07:01 +0000 (14:07 -0500)
Even when the launch of QEMU succeeds, it's useful to have the command
line recorded.

Reviewed-by: Caio Carrara <ccarrara@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Cleber Rosa <crosa@redhat.com>
Message-Id: <20190202005610.24048-2-crosa@redhat.com>
Signed-off-by: Cleber Rosa <crosa@redhat.com>
python/qemu/__init__.py

index 38de3e9177e927787a5f2fdad638d4bfbe7d7f71..585cd2a1a393006c248d570b695dcdbce8a505ca 100644 (file)
@@ -321,6 +321,7 @@ class QEMUMachine(object):
         self._pre_launch()
         self._qemu_full_args = (self._wrapper + [self._binary] +
                                 self._base_args() + self._args)
+        LOG.debug('VM launch command: %r', ' '.join(self._qemu_full_args))
         self._popen = subprocess.Popen(self._qemu_full_args,
                                        stdin=devnull,
                                        stdout=self._qemu_log_file,