Gentoo Archives: gentoo-catalyst

From: Mike Frysinger <vapier@g.o>
To: gentoo-catalyst@l.g.o
Subject: [gentoo-catalyst] [PATCH 4/4] config: convert to log module
Date: Fri, 09 Oct 2015 19:36:15
Message-Id: 1444419367-779-4-git-send-email-vapier@gentoo.org
In Reply to: [gentoo-catalyst] [PATCH 1/4] hash_utils: convert to log module by Mike Frysinger
1 ---
2 catalyst/config.py | 4 +++-
3 1 file changed, 3 insertions(+), 1 deletion(-)
4
5 diff --git a/catalyst/config.py b/catalyst/config.py
6 index ffad9b3..db81a96 100644
7 --- a/catalyst/config.py
8 +++ b/catalyst/config.py
9 @@ -1,5 +1,7 @@
10
11 import re
12 +
13 +from catalyst import log
14 from catalyst.support import CatalystError
15
16 class ParserBase(object):
17 @@ -98,7 +100,7 @@ class ParserBase(object):
18 for x in values.keys():
19 # Delete empty key pairs
20 if not values[x]:
21 - print "\n\tWARNING: No value set for key " + x + "...deleting"
22 + log.warning('No value set for key "%s"; deleting', x)
23 del values[x]
24
25 self.values = values
26 --
27 2.5.2

Replies

Subject Author
Re: [gentoo-catalyst] [PATCH 4/4] config: convert to log module Brian Dolbec <dolsen@g.o>