Pywikibot: Fix commands.log
See https://phabricator.wikimedia.org/T56897 and https://phabricator.wikimedia.org/T98106
Log files are created even if -nolog argument is set.
The function to log is handled in bot.py, named writeToCommandLogFile(). Add a condition that checks if -nolog argument was passed (if moduleName in config.log:)
before this function is called.
Pywikibot is a Python-based framework to write bots for MediaWiki. See https://www.mediawiki.org/wiki/Manual:Pywikibot for more information. Patches can be submitted via Gerrit (you need a MediaWiki.org account). See https://www.mediawiki.org/wiki/Manual:Pywikibot/Gerrit. After you have successfully claimed this task on this site please do use the task in Phabricator for communication instead. This allows more PWB developers to be reached! General development questions can be asked on the Pywikibot mailing list at https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l and the #pywikibot IRC channel (see https://www.mediawiki.org/wiki/MediaWiki_on_IRC ).