Xqt added a comment.

  This is a Windows issue, see https://bugs.python.org/issue25121. Seems that 
setting the same file_handler to root_logger, debug_logger and warnings_logger 
causes that error. A PermissionError is raised when renaming the `.log` file to 
`1.log` inside `rotate()` method. Comment them out in bot.py the rotating works 
as expected:
  
    ##        for component in config.debug_log:
    ##            if component:
    ##                debuglogger = logging.getLogger('pywiki.' + component)
    ##            else:
    ##                debuglogger = logging.getLogger('pywiki')
    ##            debuglogger.setLevel(DEBUG)
    ##            debuglogger.addHandler(file_handler)
    ##
    ##        warnings_logger.addHandler(file_handler)

TASK DETAIL
  https://phabricator.wikimedia.org/T286127

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Xqt
Cc: Aklapper, pywikibot-bugs-list, Xqt, Jyoo1011, JohnsonLee01, SHEKH, 
Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, 
Dvorapa, Altostratus, Avicennasis, mys_721tx, jayvdb, Masti, Alchimista
_______________________________________________
pywikibot-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to