[ python-Bugs-1396622 ] TimedRotatingFileHandler midnight rollover time increases

SourceForge.net noreply at sourceforge.net
Thu Feb 2 01:54:22 CET 2006


Bugs item #1396622, was opened at 01/04/06 00:25
Message generated for change (Comment added) made by sf-robot
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1396622&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.4
>Status: Closed
Resolution: Accepted
Priority: 5
Submitted By: Andrew Waters (awaters)
Assigned to: Vinay Sajip (vsajip)
Summary: TimedRotatingFileHandler midnight rollover time increases

Initial Comment:
When calculating the next rollover time the 
calculation uses the current time plus the interval.  
Unless the log file is written exactly at midnight 
the rollover time becomes the current time + 1 day.  
So for example, if the log is written at 2:00am then 
the next rollover time will be 2:00am the following 
day rather than midnight.

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

>Comment By: SourceForge Robot (sf-robot)
Date: 02/01/06 16:54

Message:
Logged In: YES 
user_id=1312539

This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 14 days (the time period specified by
the administrator of this Tracker).

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

Comment By: Vinay Sajip (vsajip)
Date: 01/16/06 01:18

Message:
Logged In: YES 
user_id=308438

Fixed the rollover time increase problem (checked into SVN
trunk and release24-maint branch). However, DST adjustment
has not been done yet.



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

Comment By: Josiah Carlson (josiahcarlson)
Date: 01/13/06 19:46

Message:
Logged In: YES 
user_id=341410

For this handler, one should also be aware of the fact that
when DST changes, the time.timezone doesn't change, so
calculation of when midnight actually is (if one does that),
may be off by an hour until the daemon restarts.

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

Comment By: Neal Norwitz (nnorwitz)
Date: 01/04/06 21:46

Message:
Logged In: YES 
user_id=33168

Vinay, any comments?

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

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


More information about the Python-bugs-list mailing list