Revision: 7970 Author: russblau Date: 2010-02-26 22:20:18 +0000 (Fri, 26 Feb 2010)
Log Message: ----------- fix bug that prevented logger from finding handlers
Modified Paths: -------------- branches/rewrite/pywikibot/bot.py
Modified: branches/rewrite/pywikibot/bot.py =================================================================== --- branches/rewrite/pywikibot/bot.py 2010-02-26 18:08:20 UTC (rev 7969) +++ branches/rewrite/pywikibot/bot.py 2010-02-26 22:20:18 UTC (rev 7970) @@ -126,7 +126,8 @@ """ # make sure logging system has been initialized root = logging.getLogger("pywiki") - if root.level == 30: # init_handlers sets this level + if not root.level: + # init_handlers sets this level; if it is 0, it needs to be set init_handlers(strm=ui.output_stream)
frame = currentframe() @@ -425,7 +426,7 @@ if do_help: showHelp() sys.exit(0) - logger.debug(u"handleArgs() completed.") + pywikibot.output(u"handleArgs() completed.", level=pywikibot.DEBUG) return nonGlobalArgs
pywikipedia-svn@lists.wikimedia.org