jenkins-bot has submitted this change and it was merged.

Change subject: [bugfix] -nolog option must also disable general '*' setting
......................................................................


[bugfix] -nolog option must also disable general '*' setting

Bug: T56897
Change-Id: Iab5e3b2271796db99345139769704500f407a4e0
---
M pywikibot/bot.py
1 file changed, 1 insertion(+), 2 deletions(-)

Approvals:
  John Vandenberg: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/pywikibot/bot.py b/pywikibot/bot.py
index 895e56f..3c76689 100644
--- a/pywikibot/bot.py
+++ b/pywikibot/bot.py
@@ -860,8 +860,7 @@
             if value:
                 config.logfilename = value
         elif option == '-nolog':
-            if moduleName in config.log:
-                config.log.remove(moduleName)
+            config.log = []
         elif option in ('-cosmeticchanges', '-cc'):
             config.cosmetic_changes = not config.cosmetic_changes
             output(u'NOTE: option cosmetic_changes is %s\n'

-- 
To view, visit https://gerrit.wikimedia.org/r/266720
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Iab5e3b2271796db99345139769704500f407a4e0
Gerrit-PatchSet: 4
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Xqt <[email protected]>
Gerrit-Reviewer: John Vandenberg <[email protected]>
Gerrit-Reviewer: Ladsgroup <[email protected]>
Gerrit-Reviewer: Mpaa <[email protected]>
Gerrit-Reviewer: Russell Blau <[email protected]>
Gerrit-Reviewer: XZise <[email protected]>
Gerrit-Reviewer: Xqt <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
Pywikibot-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-commits

Reply via email to