From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 022F7138BED for ; Fri, 9 Oct 2015 21:06:51 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id AEB9D21C00C; Fri, 9 Oct 2015 21:06:50 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id EB6C221C010 for ; Fri, 9 Oct 2015 21:06:49 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 2A6E53406AA for ; Fri, 9 Oct 2015 21:06:49 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 19B94DD1 for ; Fri, 9 Oct 2015 21:06:47 +0000 (UTC) From: "Mike Frysinger" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Mike Frysinger" Message-ID: <1444405185.23d13a16870b5d3f5064e5ccd8b622b540260516.vapier@gentoo> Subject: [gentoo-commits] proj/catalyst:master commit in: catalyst/ X-VCS-Repository: proj/catalyst X-VCS-Files: catalyst/config.py X-VCS-Directories: catalyst/ X-VCS-Committer: vapier X-VCS-Committer-Name: Mike Frysinger X-VCS-Revision: 23d13a16870b5d3f5064e5ccd8b622b540260516 X-VCS-Branch: master Date: Fri, 9 Oct 2015 21:06:47 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 4d282d6b-bc53-4d58-8e79-3e7af6f56e86 X-Archives-Hash: e4366bcdcc60938502b2e9a0fa0794dc commit: 23d13a16870b5d3f5064e5ccd8b622b540260516 Author: Mike Frysinger gentoo org> AuthorDate: Fri Oct 9 15:39:45 2015 +0000 Commit: Mike Frysinger gentoo org> CommitDate: Fri Oct 9 15:39:45 2015 +0000 URL: https://gitweb.gentoo.org/proj/catalyst.git/commit/?id=23d13a16 config: convert to log module catalyst/config.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/catalyst/config.py b/catalyst/config.py index ffad9b3..db81a96 100644 --- a/catalyst/config.py +++ b/catalyst/config.py @@ -1,5 +1,7 @@ import re + +from catalyst import log from catalyst.support import CatalystError class ParserBase(object): @@ -98,7 +100,7 @@ class ParserBase(object): for x in values.keys(): # Delete empty key pairs if not values[x]: - print "\n\tWARNING: No value set for key " + x + "...deleting" + log.warning('No value set for key "%s"; deleting', x) del values[x] self.values = values