[Mailman-Developers] small logging change for ListAdmin.py

Stephen Willey Mats Mats willey at washington.edu
Fri Mar 21 22:26:35 CET 2014


Please consider this small logging change.  

This helps trace issues, or claimed issues, with message moderation.  Also, it adds symmetry with many of the messages that log mail going into a moderated state.  

Patch is against 2.1.17

thanks,
steve

--- ListAdmin.py        2013-12-12 19:40:27.276252413 -0800
+++ /usr/local/mailman/Mailman/ListAdmin.py     2014-03-21 11:59:50.826700290 -0700
@@ -285,8 +285,8 @@
             # message directly here can lead to a huge delay in web
             # turnaround.  Log the moderation and add a header.
             msg['X-Mailman-Approved-At'] = email.Utils.formatdate(localtime=1)
-            syslog('vette', 'held message approved, message-id: %s',
-                   msg.get('message-id', 'n/a'))
+            syslog('vette', '%s held message approved, message-id: %s',
+                   self.internal_name(), msg.get('message-id', 'n/a'))
             # Stick the message back in the incoming queue for further
             # processing.
             inq = get_switchboard(mm_cfg.INQUEUE_DIR)


More information about the Mailman-Developers mailing list