Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Print progress to stderr #1606

Closed
wants to merge 1 commit into from

Conversation

exussum12
Copy link
Contributor

When redirecting output to save it, The progress info is also sent.

Progress info should be send to stderr so it can either be redirected
seperatly or just left ot print the progress.

When redirecting output to save it, The progress info is also sent.

Progress info should be send to stderr so it can either be redirected
seperatly or just left ot print the progress.
@jrfnl
Copy link
Contributor

jrfnl commented Aug 12, 2017

Why ?

@exussum12
Copy link
Contributor Author

For when you are directing the real report to save to a file. Progress output is mixed in with this and not what is expected. Calling without redirection this pr makes 0 difference as both streams are shown

@jrfnl
Copy link
Contributor

jrfnl commented Aug 12, 2017

Interesting. I would expect one to use the --report-full=./myfilename.txt command line option to save the real report to file instead of redirecting it. Would this PR have any influence of that (and similar) cl options ?

@exussum12
Copy link
Contributor Author

It would be identical to using the report-full option, With much less syntax.

this pr would not change existing behavior , unless someone is parsing out the progress from the standard output,

@gsherwood
Copy link
Member

This is not a change I want to make right now. There are already options to send different reports to different files, so anyone already capturing STDOUT clearly wants all the debug output they are asking for. Plus, it is a BC break.

I may consider something like this for a major version, but I'd expect all non-report output (including verbose output, debug output, memory/time usage output) to be sent to STDERR as well.

@gsherwood
Copy link
Member

I'm not going to accept this PR so I'll close it, but I'd be happy to discuss this change on a new issue if you'd like to create one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants