[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 4/5] scripts/device-crash-test: don't emit AQMP connection errors
From: |
John Snow |
Subject: |
[PATCH 4/5] scripts/device-crash-test: don't emit AQMP connection errors to stdout |
Date: |
Thu, 11 Nov 2021 09:37:18 -0500 |
These errors are expected, so they shouldn't clog up terminal output. In
the event that they're *not* expected, we'll be seeing an awful lot more
output concerning the nature of the failure.
Reported-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: John Snow <jsnow@redhat.com>
---
scripts/device-crash-test | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/scripts/device-crash-test b/scripts/device-crash-test
index d91e8616ef..49bcd61b4f 100755
--- a/scripts/device-crash-test
+++ b/scripts/device-crash-test
@@ -499,6 +499,12 @@ def main():
lvl = logging.WARN
logging.basicConfig(stream=sys.stdout, level=lvl, format='%(levelname)s:
%(message)s')
+ if not args.debug:
+ # Async QMP, when in use, is chatty about connection failures.
+ # This script knowingly generates a ton of connection errors.
+ # Silence this logger.
+ logging.getLogger('qemu.aqmp.qmp_client').setLevel(logging.CRITICAL)
+
fatal_failures = []
wl_stats = {}
skipped = 0
--
2.31.1
- [PATCH 0/5] python/aqmp: improve support for device-crash-test, John Snow, 2021/11/11
- [PATCH 2/5] python/aqmp: fix ConnectError string method, John Snow, 2021/11/11
- [PATCH 3/5] scripts/device-crash-test: simplify Exception handling, John Snow, 2021/11/11
- [PATCH 5/5] scripts/device-crash-test: hide tracebacks for QMP connect errors, John Snow, 2021/11/11
- [PATCH 4/5] scripts/device-crash-test: don't emit AQMP connection errors to stdout,
John Snow <=
- [PATCH 1/5] python/aqmp: Fix disconnect during capabilities negotiation, John Snow, 2021/11/11
- Re: [PATCH 0/5] python/aqmp: improve support for device-crash-test, Thomas Huth, 2021/11/12