[issue44186] TimedRotatingFileHandler overwrite log
Vinay Sajip
report at bugs.python.org
Sun Aug 1 01:56:54 EDT 2021
Vinay Sajip <vinay_sajip at yahoo.co.uk> 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] : bar 2021-08-01T06:51:43.138274
and the log files created were
$ more test.log*
::::::::::::::
test.log
::::::::::::::
bar 2021-08-01T06:51:43.138274
::::::::::::::
test.log.2021-07-31
::::::::::::::
foo 2021-08-01T06:51:43.091681
So from what I can see, both logged messages are present and nothing has been lost. Can you describe the problem more clearly? I can't see one.
----------
Added file: https://bugs.python.org/file50195/test.sh
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue44186>
_______________________________________
More information about the Python-bugs-list
mailing list