From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44833) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f9cGR-0001rF-O3 for qemu-devel@nongnu.org; Fri, 20 Apr 2018 16:04:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f9cGO-0006vF-La for qemu-devel@nongnu.org; Fri, 20 Apr 2018 16:04:11 -0400 Received: from mx1.redhat.com ([209.132.183.28]:35560) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1f9cGO-0006sE-Ea for qemu-devel@nongnu.org; Fri, 20 Apr 2018 16:04:08 -0400 Date: Fri, 20 Apr 2018 17:03:53 -0300 From: Eduardo Habkost Message-ID: <20180420200353.GH29865@localhost.localdomain> References: <20180420181951.7252-1-ehabkost@redhat.com> <20180420181951.7252-21-ehabkost@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180420181951.7252-21-ehabkost@redhat.com> Subject: Re: [Qemu-devel] [RFC 20/24] avocado_qemu: Set QMP log level to INFO List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Amador Pahim , Stefan Hajnoczi , =?utf-8?B?THVrw6HFoQ==?= Doktor , Alistair Francis , Cleber Rosa , Fam Zheng On Fri, Apr 20, 2018 at 03:19:47PM -0300, Eduardo Habkost wrote: > From: Amador Pahim > > Otherwise we will see the debug messages in our test logs. Why don't we want to see the QMP debug messages when debugging is enabled? > > Signed-off-by: Amador Pahim > Signed-off-by: Eduardo Habkost > --- > tests/avocado/avocado_qemu/test.py | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/tests/avocado/avocado_qemu/test.py b/tests/avocado/avocado_qemu/test.py > index b921151bae..308fdfa514 100644 > --- a/tests/avocado/avocado_qemu/test.py > +++ b/tests/avocado/avocado_qemu/test.py > @@ -235,6 +235,7 @@ class _VM(qemu.QEMUMachine): > self.username = username > self.password = password > super(_VM, self).__init__(qemu_bin, name=self.name, arch=arch) > + logging.getLogger('QMP').setLevel(logging.INFO) > > def get_console(self, console_address=None, prompt=r"[\#\$] "): > """ > -- > 2.14.3 > -- Eduardo