http://www.mediawiki.org/wiki/Special:Code/pywikipedia/11451
Revision: 11451 Author: drtrigon Date: 2013-04-25 09:12:54 +0000 (Thu, 25 Apr 2013) Log Message: ----------- bug fix; logging header output came too often
Modified Paths: -------------- branches/rewrite/pywikibot/bot.py
Modified: branches/rewrite/pywikibot/bot.py =================================================================== --- branches/rewrite/pywikibot/bot.py 2013-04-25 09:11:13 UTC (rev 11450) +++ branches/rewrite/pywikibot/bot.py 2013-04-25 09:12:54 UTC (rev 11451) @@ -226,7 +226,8 @@ debuglogger.setLevel(DEBUG) debuglogger.addHandler(file_handler)
- writelogheader() + if not _handlers_initialized: + writelogheader()
_handlers_initialized = True