On 22 February 2012 11:24, Bináris wikiposta@gmail.com wrote:
- Let's introduce a new config parameter suppress with default False.
- pywikibot.output should return immediately upon detecting
suppress=True. One central handle for majority of screen outputs.
How would this be different from
python bot.py 2>&1 > /dev/null
?
Furthermore, the logging module is *not* difficult and a lot of useful wrapper functions for pywikipedia already exist in the rewrite branch: http://svn.wikimedia.org/viewvc/pywikipedia/branches/rewrite/pywikibot/bot.p...
(around line 217)
Best, Merlijn