summaryrefslogtreecommitdiff
path: root/scripts/qemu.py
diff options
context:
space:
mode:
authorEduardo Habkost <ehabkost@redhat.com>2017-10-05 14:20:12 -0300
committerEduardo Habkost <ehabkost@redhat.com>2017-10-11 15:15:17 -0300
commit091776545f759f379fa9ae5b67ce5b2a6153a010 (patch)
tree1d3fba860f1bc2839e65aa4966f69c45e38932e1 /scripts/qemu.py
parent8af09b8001301e6bb085a23fc029da94e0725c1c (diff)
downloadqemu-091776545f759f379fa9ae5b67ce5b2a6153a010.tar.gz
scripts: Remove debug parameter from QEMUMonitorProtocol
Use logging module for the QMP debug messages. The only scripts that set debug=True are iotests.py and guestperf/engine.py, and they already call logging.basicConfig() to set up logging. Scripts that don't configure logging are safe as long as they don't need debugging output, because debug messages don't trigger the "No handlers could be found for logger" message from the Python logging module. Scripts that already configure logging but don't use debug=True (e.g. scripts/vm/basevm.py) will get QMP debugging enabled for free. Cc: "Alex Bennée" <alex.bennee@linaro.org> Cc: Fam Zheng <famz@redhat.com> Cc: "Philippe Mathieu-Daudé" <f4bug@amsat.org> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com> Message-Id: <20171005172013.3098-3-ehabkost@redhat.com> Reviewed-by: Lukáš Doktor <ldoktor@redhat.com> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Diffstat (limited to 'scripts/qemu.py')
-rw-r--r--scripts/qemu.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/scripts/qemu.py b/scripts/qemu.py
index c9a106fbce..f6d2e68627 100644
--- a/scripts/qemu.py
+++ b/scripts/qemu.py
@@ -177,8 +177,7 @@ class QEMUMachine(object):
def _pre_launch(self):
self._qmp = qmp.qmp.QEMUMonitorProtocol(self._monitor_address,
- server=True,
- debug=self._debug)
+ server=True)
def _post_launch(self):
self._qmp.accept()