From: John Snow Date: Thu, 14 May 2020 05:53:52 +0000 (-0400) Subject: python/qemu/machine: remove logging configuration X-Git-Tag: v5.1.0-rc0~100^2~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=053774bdecf60c0500d66a05e02e48ff24ab23cf;p=thirdparty%2Fqemu.git python/qemu/machine: remove logging configuration Python 3.5 and above do not print a warning when logging is not configured. As a library, it's best practice to leave logging configuration to the client executable. Signed-off-by: John Snow Reviewed-by: Philippe Mathieu-Daudé Message-Id: <20200514055403.18902-22-jsnow@redhat.com> Signed-off-by: Philippe Mathieu-Daudé --- diff --git a/python/qemu/machine.py b/python/qemu/machine.py index d2f531f1b40..41554de5331 100644 --- a/python/qemu/machine.py +++ b/python/qemu/machine.py @@ -119,9 +119,6 @@ class QEMUMachine(object): self._console_socket = None self._remove_files = [] - # just in case logging wasn't configured by the main script: - logging.basicConfig() - def __enter__(self): return self