summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2006-12-31 00:35:49 +0000
committerZac Medico <zmedico@gentoo.org>2006-12-31 00:35:49 +0000
commit9831d715487760682f6bf127182dd402d346d3ce (patch)
tree222321bc8eab07737f643ccb05ea98b9ed5483e8
parenta8ed41c477e4dc13ff51d61ffee8ac7d8cdd0602 (diff)
downloadportage-9831d715487760682f6bf127182dd402d346d3ce.tar.gz
portage-9831d715487760682f6bf127182dd402d346d3ce.tar.bz2
portage-9831d715487760682f6bf127182dd402d346d3ce.zip
Send errors in elog_process() to stderr via writemsg.
svn path=/main/trunk/; revision=5433
-rw-r--r--pym/portage.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/pym/portage.py b/pym/portage.py
index f0b5d1d39..41a73957e 100644
--- a/pym/portage.py
+++ b/pym/portage.py
@@ -475,7 +475,8 @@ def elog_process(cpv, mysettings):
and not msgtype.lower() in mysettings["PORTAGE_ELOG_CLASSES"].split():
continue
if msgfunction not in portage_const.EBUILD_PHASES:
- print "!!! can't process invalid log file: %s" % f
+ writemsg("!!! can't process invalid log file: %s\n" % f,
+ noiselevel=-1)
continue
if not msgfunction in mylogentries:
mylogentries[msgfunction] = []
@@ -521,10 +522,11 @@ def elog_process(cpv, mysettings):
_elog_atexit_handlers.append(m.finalize)
atexit_register(m.finalize, mysettings)
except (ImportError, AttributeError), e:
- print "!!! Error while importing logging modules while loading \"mod_%s\":" % s
- print e
+ writemsg("!!! Error while importing logging modules " + \
+ "while loading \"mod_%s\":\n" % str(s))
+ writemsg("%s\n" % str(e), noiselevel=-1)
except portage_exception.PortageException, e:
- print e
+ writemsg("%s\n" % str(e), noiselevel=-1)
# clean logfiles to avoid repetitions
for f in mylogfiles: