homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Matt.Mullins
Recipients Matt.Mullins
Date 2012年03月12日.21:18:38
SpamBayes Score 3.8857806e-16
Marked as misclassified No
Message-id <1331587120.0.0.484868698983.issue14267@psf.upfronthosting.co.za>
In-reply-to
Content
As logs were rotated at midnight this morning (at the end of the day 2012年03月11日), we detected that the logs were incorrectly renamed to *.log.2012年03月10日, causing logs from Saturday to be overwritten. I believe this bug is related to the transition to daylight saving time, as this is the only day in recent history that this has occurred.
I have attached a script to reproduce this bug. This works reliably in the US/Pacific time zone. To run it, execute "rm foo.log* ; sudo date 03112359.55 && python logger_test.py". This will cause ten records to be logged, across the midnight boundary from 2012年03月11日 23:59:55 to 2012年03月12日 00:00:05.
Expected behavior: the logs from 2012年03月11日 up to, but not including, 2012年03月12日 00:00:00 should be written to a file named "foo.log.2012年03月11日", and the remainder of the log entries should be written to "foo.log".
Actual behavior: the logs from 2012年03月11日 23:59 through, but not including, 2012年03月12日 00:00 are instead written to a file named "foo.log.2012年03月10日", and the remainder of the log entries are written to "foo.log".
This does not happen for any other day. For example: running "sudo date 02152359.55" in the above procedure correctly names the file "foo.log.2012年02月15日".
History
Date User Action Args
2012年03月12日 21:18:40Matt.Mullinssetrecipients: + Matt.Mullins
2012年03月12日 21:18:40Matt.Mullinssetmessageid: <1331587120.0.0.484868698983.issue14267@psf.upfronthosting.co.za>
2012年03月12日 21:18:39Matt.Mullinslinkissue14267 messages
2012年03月12日 21:18:39Matt.Mullinscreate

AltStyle によって変換されたページ (->オリジナル) /