XZise added a comment.
There are three types of messages (more or less):
- errors - normal output (status) - data
Currently it's the the first two are going to stderr while the last is going to stdout. The problem is now, someone who wants to gets data wouldn't want this to be changed. We have three streams (if we don't count warnings) but only two targets. Instead of printing more to stdout I think it should be possible to redirect where the logs are going. So that someone could say that messages with 'error' level are going to stderr, and the rest to stdout. Then it's in the hand of the script to use a sensible output level and not always use `pywikibot.output` to output anything.
TASK DETAIL https://phabricator.wikimedia.org/T57151
REPLY HANDLER ACTIONS Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: XZise Cc: XZise, jayvdb, Legoktm, Ricordisamoa, Ladsgroup, pywikipedia-bugs
pywikipedia-bugs@lists.wikimedia.org