[New-bugs-announce] [issue45628] TimedRotatingFileHandler backupCount not working

Ivo Grondman report at bugs.python.org
Wed Oct 27 11:23:13 EDT 2021


New submission from Ivo Grondman <python at grondman.net>:

Using the TimedRotatingFileHandler with a non-zero backupCount, I get different behaviour between versions 3.9 and 3.10.

Attached is a small example. Running it with 3.9 gives me two backups at most even if I run the script for a long time. Running it with 3.10 does not delete old backup files at all and just keeps writing new ones.

----------
components: Library (Lib), macOS
files: logrotate.py
messages: 405104
nosy: ivogrondman, ned.deily, ronaldoussoren
priority: normal
severity: normal
status: open
title: TimedRotatingFileHandler backupCount not working
versions: Python 3.10
Added file: https://bugs.python.org/file50397/logrotate.py

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue45628>
_______________________________________


More information about the New-bugs-announce mailing list