python/qemu/machine: remove logging configuration
authorJohn Snow <jsnow@redhat.com>
Thu, 14 May 2020 05:53:52 +0000 (01:53 -0400)
committerPhilippe Mathieu-Daudé <philmd@redhat.com>
Sun, 31 May 2020 16:25:30 +0000 (18:25 +0200)
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 <jsnow@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20200514055403.18902-22-jsnow@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
python/qemu/machine.py

index d2f531f1b408f5924fdddbcfbf982cd4567e928e..41554de5331b627f0e3a76c8347bec14dc325ecf 100644 (file)
@@ -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