summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-10-12 05:41:12 +0000
committerZac Medico <zmedico@gentoo.org>2007-10-12 05:41:12 +0000
commit1148f95d7d034a86839e5fc5c0059afe6f1c1b01 (patch)
treeeadbaf8a80e90f7187f07ddbd8b676ea6aca9be7
parentae25da1d16ed13ae79a347a52ea3334e208aafd2 (diff)
downloadportage-1148f95d7d034a86839e5fc5c0059afe6f1c1b01.tar.gz
portage-1148f95d7d034a86839e5fc5c0059afe6f1c1b01.tar.bz2
portage-1148f95d7d034a86839e5fc5c0059afe6f1c1b01.zip
Use writemsg() to send exception string to stderr.
svn path=/main/trunk/; revision=8058
-rw-r--r--pym/portage/elog/mod_mail_summary.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/pym/portage/elog/mod_mail_summary.py b/pym/portage/elog/mod_mail_summary.py
index d0b2577ae..5b554a7bf 100644
--- a/pym/portage/elog/mod_mail_summary.py
+++ b/pym/portage/elog/mod_mail_summary.py
@@ -5,6 +5,7 @@
import portage.mail, socket, os, time
from portage.exception import PortageException
+from portage.util import writemsg
from email.MIMEText import MIMEText as TextMessage
_items = {}
@@ -52,6 +53,6 @@ def _finalize(mysettings, items):
try:
portage.mail.send_mail(mysettings, mymessage)
except PortageException, e:
- print str(e)
+ writemsg("%s\n" % str(e), noiselevel=-1)
return