Message173016
The RotatingFileHandler classes force the open() mode of the new log file to be "w" even though it is initially defaulted to "a" in doRollover() methods:
self.mode = 'w'
self.stream = self._open()
This can cause problems in systems that have multiple programs writing to the log file; they can both end up opening the new file in "w" mode and then there's loss of data.
I cannot think of a reason why "w" should be forced in this manner.
The fix is to remove the "self.mode = 'w'" line from the two doRollover() methods. |
|
Date |
User |
Action |
Args |
2012-10-16 05:05:37 | richard | set | recipients:
+ richard |
2012-10-16 05:05:37 | richard | set | messageid: <1350363937.05.0.667982982296.issue16244@psf.upfronthosting.co.za> |
2012-10-16 05:05:36 | richard | link | issue16244 messages |
2012-10-16 05:05:36 | richard | create | |
|