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 D4F5913888F for ; Fri, 9 Oct 2015 19:36:15 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id F3D0321C018; Fri, 9 Oct 2015 19:36:12 +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 7CC1B21C015 for ; Fri, 9 Oct 2015 19:36:12 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id BBF493406F0 for ; Fri, 9 Oct 2015 19:36:11 +0000 (UTC) From: Mike Frysinger To: gentoo-catalyst@lists.gentoo.org Subject: [gentoo-catalyst] [PATCH 4/4] config: convert to log module Date: Fri, 9 Oct 2015 15:36:07 -0400 Message-Id: <1444419367-779-4-git-send-email-vapier@gentoo.org> X-Mailer: git-send-email 2.5.2 In-Reply-To: <1444419367-779-1-git-send-email-vapier@gentoo.org> References: <1444419367-779-1-git-send-email-vapier@gentoo.org> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-catalyst@lists.gentoo.org Reply-to: gentoo-catalyst@lists.gentoo.org X-Archives-Salt: f3dddc25-26c3-46be-ba30-c41249cdcdfe X-Archives-Hash: 79fb1c414048d12ec03cd7f4bc5d3af0 --- 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 -- 2.5.2