Inductiveload created this task.
Inductiveload added a project: Pywikibot.
Restricted Application added subscribers: pywikibot-bugs-list, Aklapper.
TASK DESCRIPTION
I find I cannot change the `pywiki` module logging level, so it's always set
to "Verbose" if I see and log level.
For example:
log_level = logging.INFO
logging.basicConfig(level=log_level)
# this doesn't work, I still get VERBOSE logging
logging.getLogger("pywiki").setLevel(logging.WARNING)
# this does, but I get no logging
pwbl = logging.getLogger("pywiki")
pwbl.disabled = True
Is there a way to set the same logging level as the surrounding code?
TASK DETAIL
https://phabricator.wikimedia.org/T272088
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: Inductiveload
Cc: Aklapper, Inductiveload, pywikibot-bugs-list, JohnsonLee01, SHEKH,
Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89,
Dvorapa, Altostratus, Avicennasis, mys_721tx, jayvdb, Masti, Alchimista, Rxy
_______________________________________________
pywikibot-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs