From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eduardo Habkost Subject: [KVM-AUTOTEST PATCH 2/5] kvm_config: print directly to stdout instead of using logging Date: Thu, 6 Jan 2011 14:12:33 -0200 Message-ID: <1294330356-17043-3-git-send-email-ehabkost@redhat.com> References: <1294330356-17043-1-git-send-email-ehabkost@redhat.com> Cc: Lucas Meneghel Rodrigues To: autotest@test.kernel.org, kvm@vger.kernel.org Return-path: Received: from mx1.redhat.com ([209.132.183.28]:19433 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752737Ab1AFQMi (ORCPT ); Thu, 6 Jan 2011 11:12:38 -0500 In-Reply-To: <1294330356-17043-1-git-send-email-ehabkost@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: From: Eduardo Habkost If the whole purpose of running kvm_config.py directly is to print the dictionary contents, it is better to simply dump the information to stdout instead of adding the logginging info and timestamp clutter to every single line. Signed-off-by: Eduardo Habkost --- client/tests/kvm/kvm_config.py | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/client/tests/kvm/kvm_config.py b/client/tests/kvm/kvm_config.py index 45d8fe6..5be2e66 100755 --- a/client/tests/kvm/kvm_config.py +++ b/client/tests/kvm/kvm_config.py @@ -695,8 +695,8 @@ if __name__ == "__main__": cfg.parse_file(fn) dicts = cfg.get_generator() for i, dict in enumerate(dicts): - logging.info("Dictionary #%d:", i) + print "Dictionary #%d:" % (i) keys = dict.keys() keys.sort() for key in keys: - logging.info(" %s = %s", key, dict[key]) + print " %s = %s" % (key, dict[key]) -- 1.7.3.2