[issue23305] RotatingFileHandler does not rotate if backupCount is 0

2015-01-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset 0375eb71d75e by Vinay Sajip in branch '2.7': Issue #23305: clarified RotatingFileHandler documentation. https://hg.python.org/cpython/rev/0375eb71d75e New changeset 93888975606b by Vinay Sajip in branch '3.4': Issue #23305: clarified RotatingFileHan

[issue23305] RotatingFileHandler does not rotate if backupCount is 0

2015-01-23 Thread Juha Lemmetti
Juha Lemmetti added the comment: What You point out is true. However, I saw a bug in code where RotatingFileHandler was used, and I had to check the operation using a small test program. For maxBytes, it is explicitly stated that when the value is 0, rollover never occurs. It wouldn't hurt to

[issue23305] RotatingFileHandler does not rotate if backupCount is 0

2015-01-23 Thread Vinay Sajip
Vinay Sajip added the comment: The default parameters for backupCount and maxBytes are both shown as 0. The first paragraph ends with "By default, the file grows indefinitely." The second paragraph says, "If backupCount is non-zero, the system will save old log files by appending the extension

[issue23305] RotatingFileHandler does not rotate if backupCount is 0

2015-01-23 Thread R. David Murray
Changes by R. David Murray : -- versions: +Python 3.5 -Python 3.3 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue23305] RotatingFileHandler does not rotate if backupCount is 0

2015-01-23 Thread Juha Lemmetti
New submission from Juha Lemmetti: If RotatingFileHandler is initialized with backupCount 0, the file does not rotate but grows indefinitely. This is not self-evident from the documentation. Suggestion: either rotate (discard) the log if backupCount==0 or mention the current operation the docu