[Pywikipedia-svn] SVN: [7325] branches/rewrite/pywikibot/bot.py
russblau at svn.wikimedia.org
russblau at svn.wikimedia.org
Mon Sep 28 12:41:06 UTC 2009
Revision: 7325
Author: russblau
Date: 2009-09-28 12:41:06 +0000 (Mon, 28 Sep 2009)
Log Message:
-----------
fix bug that was disabling -debug command-line arg
Modified Paths:
--------------
branches/rewrite/pywikibot/bot.py
Modified: branches/rewrite/pywikibot/bot.py
===================================================================
--- branches/rewrite/pywikibot/bot.py 2009-09-26 17:10:35 UTC (rev 7324)
+++ branches/rewrite/pywikibot/bot.py 2009-09-28 12:41:06 UTC (rev 7325)
@@ -257,8 +257,13 @@
)
file_handler.setFormatter(form)
root_logger.addHandler(file_handler)
+ # Turn on debugging for each component requested by user
+ # or for all components if nothing was specified
for component in config.debug_log:
- debuglogger = logging.getLogger("pywiki."+component)
+ if component:
+ debuglogger = logging.getLogger("pywiki."+component)
+ else:
+ debuglogger = logging.getLogger("pywiki")
debuglogger.setLevel(DEBUG)
debuglogger.addHandler(file_handler)
More information about the Pywikipedia-svn
mailing list