aboutsummaryrefslogtreecommitdiff
path: root/scripts/qemu.py
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2017-10-12 10:02:09 +0100
committerPeter Maydell <peter.maydell@linaro.org>2017-10-12 10:02:09 +0100
commita0b261db8c030813e30a39eae47359ac2a37f7e2 (patch)
tree7539d891d99da4ce3f5bf814251a3e39e41f9b51 /scripts/qemu.py
parentbac960832015bf4c4c1b873011612e2675e4464c (diff)
parent1a6d3757107181dc0b9baf3dd8ff40fb2a242b66 (diff)
downloadqemu-a0b261db8c030813e30a39eae47359ac2a37f7e2.zip
qemu-a0b261db8c030813e30a39eae47359ac2a37f7e2.tar.gz
qemu-a0b261db8c030813e30a39eae47359ac2a37f7e2.tar.bz2
Merge remote-tracking branch 'remotes/ehabkost/tags/python-next-pull-request' into staging
Python queue, 2017-10-11 # gpg: Signature made Wed 11 Oct 2017 19:49:40 BST # gpg: using RSA key 0x2807936F984DC5A6 # gpg: Good signature from "Eduardo Habkost <ehabkost@redhat.com>" # Primary key fingerprint: 5A32 2FD5 ABC4 D3DB ACCF D1AA 2807 936F 984D C5A6 * remotes/ehabkost/tags/python-next-pull-request: scripts: Remove debug parameter from QEMUMachine scripts: Remove debug parameter from QEMUMonitorProtocol guestperf: Configure logging on all shell frontends basevm: Call logging.basicConfig() iotests: Set up Python logging Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'scripts/qemu.py')
-rw-r--r--scripts/qemu.py9
1 files changed, 3 insertions, 6 deletions
diff --git a/scripts/qemu.py b/scripts/qemu.py
index c9a106f..9bfdf6d 100644
--- a/scripts/qemu.py
+++ b/scripts/qemu.py
@@ -54,7 +54,7 @@ class QEMUMachine(object):
def __init__(self, binary, args=None, wrapper=None, name=None,
test_dir="/var/tmp", monitor_address=None,
- socket_scm_helper=None, debug=False):
+ socket_scm_helper=None):
'''
Initialize a QEMUMachine
@@ -65,7 +65,6 @@ class QEMUMachine(object):
@param test_dir: where to create socket and log file
@param monitor_address: address for QMP monitor
@param socket_scm_helper: helper program, required for send_fd_scm()"
- @param debug: enable debug mode
@note: Qemu process is not started until launch() is used.
'''
if args is None:
@@ -85,12 +84,11 @@ class QEMUMachine(object):
self._events = []
self._iolog = None
self._socket_scm_helper = socket_scm_helper
- self._debug = debug
self._qmp = None
self._qemu_full_args = None
# just in case logging wasn't configured by the main script:
- logging.basicConfig(level=(logging.DEBUG if debug else logging.WARN))
+ logging.basicConfig()
def __enter__(self):
return self
@@ -177,8 +175,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()