patch to rename log files in order to work with logrotate

Bug #266857 reported by Jimpop-users
2
Affects Status Importance Assigned to Milestone
GNU Mailman
New
Medium
Unassigned

Bug Description

Mailman needs to have different log file names in order to work properly
with logrotate. A proper Logrotate conf file for Mailman needs a
postrotate command in order to restart Mailman after log files have been
rotated. See FAQ 04.007 for more details
(http://www.python.org/cgi-bin/faqw-mm.py?req=edit&file=faq04.007.htp)

Here is a patch against v2.1.9

-------------------------
+++ Logging/Logger.py 2007-04-06 21:11:18.600639072 -0400
--- Logging/Logger.py.old 2007-04-06 21:10:05.672725800 -0400
@@ -43,7 +43,6 @@
         Otherwise, the file is created only when there are writes
pending.
         """
         self.__filename = os.path.join(mm_cfg.LOG_DIR, category)
+ self.__filename += '.log'
         self.__fp = None
         self.__nofail = nofail
         self.__encoding = LOG_ENCODING or sys.getdefaultencoding()
-------------------------

[http://sourceforge.net/tracker/index.php?func=detail&aid=1695897&group_id=103&atid=350103]

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.