diff options
author | Eduardo Habkost | 2017-09-21 18:22:34 +0200 |
---|---|---|
committer | Eduardo Habkost | 2017-09-22 16:39:17 +0200 |
commit | 5810314e98c6e83b3334c451c7999fff7a27ef78 (patch) | |
tree | d6cbc571796182460393bbed12332058c96c4aee /MAINTAINERS | |
parent | Merge remote-tracking branch 'remotes/yongbok/tags/mips-20170921' into staging (diff) | |
download | qemu-5810314e98c6e83b3334c451c7999fff7a27ef78.tar.gz qemu-5810314e98c6e83b3334c451c7999fff7a27ef78.tar.xz qemu-5810314e98c6e83b3334c451c7999fff7a27ef78.zip |
qemu.py: Call logging.basicConfig() automatically
Not all scripts using qemu.py configure the Python logging
module, and end up generating a "No handlers could be found for
logger" message instead of actual log messages.
To avoid requiring every script using qemu.py to configure
logging manually, call basicConfig() when creating a QEMUMachine
object. This won't affect scripts that already set up logging,
but will ensure that scripts that don't configure logging keep
working.
Reported-by: Kevin Wolf <kwolf@redhat.com>
Fixes: 4738b0a85a0c2031fddc71b51cccebce0c4ba6b1
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Message-Id: <20170921162234.847-1-ehabkost@redhat.com>
Reviewed-by: Cleber Rosa <crosa@redhat.com>
Acked-by: Lukáš Doktor <ldoktor@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Diffstat (limited to 'MAINTAINERS')
0 files changed, 0 insertions, 0 deletions