From: Mike Frysinger <vapier@gentoo.org>
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 [thread overview]
Message-ID: <1444419367-779-4-git-send-email-vapier@gentoo.org> (raw)
In-Reply-To: <1444419367-779-1-git-send-email-vapier@gentoo.org>
---
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
next prev parent reply other threads:[~2015-10-09 19:36 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-09 19:36 [gentoo-catalyst] [PATCH 1/4] hash_utils: convert to log module Mike Frysinger
2015-10-09 19:36 ` [gentoo-catalyst] [PATCH 2/4] fileops: " Mike Frysinger
2015-10-09 19:36 ` [gentoo-catalyst] [PATCH 3/4] snapshot: " Mike Frysinger
2015-10-09 19:36 ` Mike Frysinger [this message]
2015-10-09 20:38 ` [gentoo-catalyst] [PATCH 4/4] config: " Brian Dolbec
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1444419367-779-4-git-send-email-vapier@gentoo.org \
--to=vapier@gentoo.org \
--cc=gentoo-catalyst@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox