Xqt added a comment.
In T272088#7551453 <https://phabricator.wikimedia.org/T272088#7551453>, @maynorc wrote: >> 'pywiki' logger will be initialized to level 11 and there is no easy way to change that > > Python's `logging` module offers a lot of options <https://docs.python.org/3/howto/logging.html#configuring-logging> for configuration; would it make sense to move some of this hardcoded configuration to a config file? user-config.py is able to hold such settings already e.g. with the sample given above: logger = logging.getLogger('pywiki') logger.setLevel(logging.WARNING) but a config file should be preferred anyway. TASK DETAIL https://phabricator.wikimedia.org/T272088 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Xqt Cc: maynorc, AntiCompositeNumber, CONFIQ, Xqt, Aklapper, Inductiveload, pywikibot-bugs-list, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, jayvdb, Masti, Alchimista
_______________________________________________ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org