[issue1836] 'weekly' rotating logging file rotation incorrect
Vinay Sajip
report at bugs.python.org
Thu Jan 17 22:33:25 CET 2008
Vinay Sajip added the comment:
There's already been a change to this code, since 2.5.1.1. Here's the
code in trunk:
if when.startswith('W'):
day = t[6] # 0 is Monday
if day != self.dayOfWeek:
if day < self.dayOfWeek:
daysToWait = self.dayOfWeek - day - 1
else:
daysToWait = 6 - day + self.dayOfWeek
self.rolloverAt = self.rolloverAt + (daysToWait * (60 * 60 * 24))
Does it work for you?
__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1836>
__________________________________
More information about the Python-bugs-list
mailing list