Mineo has uploaded a new change for review.
https://gerrit.wikimedia.org/r/76488
Change subject: RotatingFileHandler: Let the docstring make sense ......................................................................
RotatingFileHandler: Let the docstring make sense
Having files "app.2.log" and "app.2.log" didn't.
Change-Id: If96617cf7026ca33fded34e8a1f19db882f9b54f --- M pywikibot/bot.py 1 file changed, 2 insertions(+), 2 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/pywikibot/core refs/changes/88/76488/1
diff --git a/pywikibot/bot.py b/pywikibot/bot.py index 4424cb9..355dfec 100644 --- a/pywikibot/bot.py +++ b/pywikibot/bot.py @@ -55,8 +55,8 @@ "app.log", you would get "app.log", "app.1.log", "app.2.log", ... through to "app.5.log". The file being written to is always "app.log" - when it gets filled up, it is closed and renamed to "app.1.log", and if - files "app.2.log", "app.2.log" etc. exist, then they are renamed to - "app.2.log", "app.3.log" etc. respectively. + files "app.1.log", "app.2.log" etc. already exist, then they are + renamed to "app.2.log", "app.3.log" etc. respectively. If backupCount is >= 1 do not rotate but create new numbered filenames. The newest file has the highest number except some older numbered files where deleted and the bot was restarted. In this case the ordering
pywikibot-commits@lists.wikimedia.org