commit:     23d13a16870b5d3f5064e5ccd8b622b540260516
Author:     Mike Frysinger <vapier <AT> gentoo <DOT> org>
AuthorDate: Fri Oct  9 15:39:45 2015 +0000
Commit:     Mike Frysinger <vapier <AT> gentoo <DOT> 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

Reply via email to