[issue44186] TimedRotatingFileHandler overwrite log

2021-08-02 Thread Vinay Sajip
Vinay Sajip added the comment: OK, I get it now :-) See my comments on the PR - I think the renaming strategy might need rethinking in the presence of a "namer" routine being set. See bpo-43344, bpo-44753. This area (TimedRotatingFileHandler) is unfortunately not yet well tested, because

[issue44186] TimedRotatingFileHandler overwrite log

2021-08-01 Thread Harry
Harry added the comment: The issue appears when the TimedRotatingHandler rolls over to a filename that already exists. Running your bash script, the handler correctly rolls over so you end up with the expected behaviour. This issue arises in the case that there is already a file with the

[issue44186] TimedRotatingFileHandler overwrite log

2021-07-31 Thread Vinay Sajip
Vinay Sajip added the comment: I modified the provided test script (-> test_44186.py) and added a test shell script which runs it twice in succession. What it printed was: 6 51 43 TEST > [INFO] [2021-08-01 06:51:43] : foo 2021-08-01T06:51:43.091681 6 51 43 TEST > [INFO] [2021-08-01 06:51:43]

[issue44186] TimedRotatingFileHandler overwrite log

2021-07-31 Thread Vinay Sajip
Change by Vinay Sajip : Added file: https://bugs.python.org/file50194/log_44186.py ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue44186] TimedRotatingFileHandler overwrite log

2021-06-06 Thread Raymond Hettinger
Change by Raymond Hettinger : -- assignee: -> vinay.sajip nosy: +vinay.sajip ___ Python tracker ___ ___ Python-bugs-list mailing

[issue44186] TimedRotatingFileHandler overwrite log

2021-06-05 Thread Harry
Change by Harry : -- keywords: +patch pull_requests: +25140 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26553 ___ Python tracker ___

[issue44186] TimedRotatingFileHandler overwrite log

2021-06-04 Thread Harry
Harry added the comment: This bug seems to come from the fact that the file rollover occurs it removes any files with same name as the destination file. I believe this bug occurs on all "when" options, but the midnight option truncates the filename so only the date so it's much more likely

[issue44186] TimedRotatingFileHandler overwrite log

2021-05-20 Thread Eiji Ito
Change by Eiji Ito : Added file: https://bugs.python.org/file50053/log.py ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue44186] TimedRotatingFileHandler overwrite log

2021-05-20 Thread Eiji Ito
New submission from Eiji Ito : If you use TimedRotatingFileHandler and specify when='midnight',atTime, the log will always rollover if you start it at the same time as atTime. For example, if atTime='00:00:00', and you run a script that outputs logs using the logger library twice at