]> www.infradead.org Git - qemu-nvme.git/commitdiff
scripts/device-crash-test: don't emit AQMP connection errors to stdout
authorJohn Snow <jsnow@redhat.com>
Thu, 11 Nov 2021 14:37:18 +0000 (09:37 -0500)
committerJohn Snow <jsnow@redhat.com>
Tue, 16 Nov 2021 19:26:36 +0000 (14:26 -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>
Tested-by: Thomas Huth <thuth@redhat.com>
Message-id: 20211111143719.2162525-5-jsnow@redhat.com
Signed-off-by: John Snow <jsnow@redhat.com>
scripts/device-crash-test

index d91e8616ef9aef3df5616da55283e92e8986539f..49bcd61b4ff39eeee78b07eb0172055a80f90b5e 100755 (executable)
@@ -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