[ python-Bugs-1708538 ] TimedRotatingFileHandler's doRollover opens file in "w" mode

SourceForge.net noreply at sourceforge.net
Fri Apr 27 09:30:42 CEST 2007


Bugs item #1708538, was opened at 2007-04-27 09:30
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1708538&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Python Library
Group: Python 2.5
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Florian Schmidt (fastflo)
Assigned to: Nobody/Anonymous (nobody)
Summary: TimedRotatingFileHandler's doRollover opens file in "w" mode

Initial Comment:
if TimedRotatingFileHandler does an doRollover() it opens the new file hardcoded with mode "w" whilst the baseclass FileHandler opens it with mode "a" if nothing else is specified in the constructor. it should use the same default behavior as FileHandler and/or give a way to specify another open-mode.

if multiple processes write to the same file, and one does the RollOver all other newly spawned processes write to the end of the new file but the still running first process who did the rollover will write from the beginning of the file - overwriting log entries from the other procs...

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1708538&group_id=5470


More information about the Python-bugs-list mailing list