http://www.mediawiki.org/wiki/Special:Code/pywikipedia/11564
Revision: 11564 Author: russblau Date: 2013-05-19 23:53:02 +0000 (Sun, 19 May 2013) Log Message: ----------- Log output should not appear on terminal (except in verbose mode)
Modified Paths: -------------- branches/rewrite/pywikibot/bot.py
Modified: branches/rewrite/pywikibot/bot.py =================================================================== --- branches/rewrite/pywikibot/bot.py 2013-05-19 17:54:33 UTC (rev 11563) +++ branches/rewrite/pywikibot/bot.py 2013-05-19 23:53:02 UTC (rev 11564) @@ -242,14 +242,14 @@ except AttributeError: return
- output(u'=== Pywikipediabot framework v2.0 -- Logging header ===') + log(u'=== Pywikipediabot framework v2.0 -- Logging header ===')
# script call - output(u'COMMAND: %s' % unicode(sys.argv)) + log(u'COMMAND: %s' % unicode(sys.argv))
# new framework release/revision? (handleArgs needs to be called first) try: - output(u'VERSION: %s' % unicode((version.getversion().strip(), + log(u'VERSION: %s' % unicode((version.getversion().strip(), version.getversion_onlinerepo(), site.live_version()))) except version.ParseError: @@ -257,19 +257,19 @@
# system if hasattr(os, 'uname'): - output(u'SYSTEM: %s' % unicode(os.uname())) + log(u'SYSTEM: %s' % unicode(os.uname()))
# imported modules - output(u'MODULES:') + log(u'MODULES:') for item in sys.modules.keys(): ver = version.getfileversion('%s.py' % item.replace('.', '/')) if ver and (ver[0] == u'$'): - output(u' %s' % ver) + log(u' %s' % ver)
# messages on bot discussion page? - output(u'MESSAGES: %s' % ('unanswered' if site.messages() else 'none')) + log(u'MESSAGES: %s' % ('unanswered' if site.messages() else 'none'))
- output(u'=== ' * 14) + log(u'=== ' * 14)
# User output/logging functions
pywikipedia-svn@lists.wikimedia.org