autopkg/autopkg — pull request #104 by eahrold (2014-08-02 20:06:43+00:00)
Title: Tweak logging behavior with --report-plist as arg

I'm guessing the reason nothing is logged to sys.stdout when autopkg is run with --report-plist is to provide a clean .plist file in that pipe once the run is complete (no extraneous code to strip out).

I was wondering if you would consider sending progress updates to sys.stderr if it is invoked this way. I'm contributing to a project that uses the .plist generated, but could also use the progress generated when running normally (without --report-plist) to update the UI.

I understand that it may be semantically inappropriate to pipe stdout to stderr, but it would provide the functionality of offering that information without obstructing the desired final stdout.

If there are concerns please let me know and I may be able to rework in a manner more suitable.
But these two lines of code seemed an elegant solution for my particular needs.

Thanks for your consideration.