[prev in list] [next in list] [prev in thread] [next in thread]
List: mailman-cvs
Subject: [Mailman-checkins] CVS: mailman/Mailman/Handlers Decorate.py,2.4,2.5 Hold.py,2.8,2.9 Sendmail.py,2.2
From: Barry Warsaw <bwarsaw () users ! sourceforge ! net>
Date: 2001-06-27 18:01:03
[Download RAW message or body]
Update of /cvsroot/mailman/mailman/Mailman/Handlers
In directory usw-pr-cvs1:/tmp/cvs-serv31848/Mailman/Handlers
Modified Files:
Decorate.py Hold.py Sendmail.py ToUsenet.py
Log Message:
Better syslog() calling conventions.
Index: Decorate.py
===================================================================
RCS file: /cvsroot/mailman/mailman/Mailman/Handlers/Decorate.py,v
retrieving revision 2.4
retrieving revision 2.5
diff -C2 -r2.4 -r2.5
*** Decorate.py 2001/04/03 02:51:30 2.4
--- Decorate.py 2001/06/27 18:01:01 2.5
***************
*** 77,82 ****
text = (template % d).replace('\r\n', '\n')
except ValueError, e:
! syslog('error', 'Exception while calculating %s:\n%s' %
! (what, e))
what = what.upper()
text = _('[INVALID %(what)s]')
--- 77,81 ----
text = (template % d).replace('\r\n', '\n')
except ValueError, e:
! syslog('error', 'Exception while calculating %s:\n%s', what, e)
what = what.upper()
text = _('[INVALID %(what)s]')
Index: Hold.py
===================================================================
RCS file: /cvsroot/mailman/mailman/Mailman/Handlers/Hold.py,v
retrieving revision 2.8
retrieving revision 2.9
diff -C2 -r2.8 -r2.9
*** Hold.py 2001/05/31 21:04:46 2.8
--- Hold.py 2001/06/27 18:01:01 2.9
***************
*** 280,284 ****
i18n.set_translation(otranslation)
# Log the held message
! syslog('vette', '%s post from %s held: %s' % (listname, sender, reason))
# raise the specific MessageHeld exception to exit out of the message
# delivery pipeline
--- 280,284 ----
i18n.set_translation(otranslation)
# Log the held message
! syslog('vette', '%s post from %s held: %s', listname, sender, reason)
# raise the specific MessageHeld exception to exit out of the message
# delivery pipeline
Index: Sendmail.py
===================================================================
RCS file: /cvsroot/mailman/mailman/Mailman/Handlers/Sendmail.py,v
retrieving revision 2.2
retrieving revision 2.3
diff -C2 -r2.2 -r2.3
*** Sendmail.py 2001/03/02 06:03:32 2.2
--- Sendmail.py 2001/06/27 18:01:01 2.3
***************
*** 88,100 ****
if status:
errcode = (status & 0xff00) >> 8
! syslog('post', 'post to %s from %s, size=%d, failure=%d' %
! (mlist.internal_name(), msg.get_sender(),
! len(msg.body), errcode))
# TBD: can we do better than this? What if only one recipient out
# of the entire chunk failed?
failedrecips.append(chunk)
# Log the successful post
! syslog('post', 'post to %s from %s, size=%d, success' %
! (mlist.internal_name(), msg.get_sender(), len(msg.body)))
if failedrecips:
msgdata['recips'] = failedrecips
--- 88,100 ----
if status:
errcode = (status & 0xff00) >> 8
! syslog('post', 'post to %s from %s, size=%d, failure=%d',
! mlist.internal_name(), msg.get_sender(),
! len(msg.body), errcode)
# TBD: can we do better than this? What if only one recipient out
# of the entire chunk failed?
failedrecips.append(chunk)
# Log the successful post
! syslog('post', 'post to %s from %s, size=%d, success',
! mlist.internal_name(), msg.get_sender(), len(msg.body))
if failedrecips:
msgdata['recips'] = failedrecips
Index: ToUsenet.py
===================================================================
RCS file: /cvsroot/mailman/mailman/Mailman/Handlers/ToUsenet.py,v
retrieving revision 2.2
retrieving revision 2.3
diff -C2 -r2.2 -r2.3
*** ToUsenet.py 2001/02/15 04:43:30 2.2
--- ToUsenet.py 2001/06/27 18:01:01 2.3
***************
*** 36,40 ****
error.append('no NNTP host')
if error:
! syslog('error', 'NNTP gateway improperly configured: ' +
COMMASPACE.join(error))
return
--- 36,40 ----
error.append('no NNTP host')
if error:
! syslog('error', 'NNTP gateway improperly configured: %s',
COMMASPACE.join(error))
return
_______________________________________________
Mailman-checkins mailing list
Mailman-checkins@python.org
http://mail.python.org/mailman/listinfo/mailman-checkins
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic