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

Consider to use stdout as default fd for Progressbar #51

Open
do3cc opened this issue Mar 3, 2016 · 0 comments
Open

Consider to use stdout as default fd for Progressbar #51

do3cc opened this issue Mar 3, 2016 · 0 comments

Comments

@do3cc
Copy link

do3cc commented Mar 3, 2016

A project I am using has a cleanup task that uses the progressbar for displaying progress.
It does not explicitly define the fd to use, so progressbar starts to use stderr
I run the task via cron.
Every output a cron task generates is assumed to be an error and cron sends an email with the output.
If a tool does not have a switch to be more quiet, one can just pipe stdout to dev null and hope that errors get sent to stderr.
This won't be possible for tools that use the Progressbar with default settings, because it will out the bar to stderr, which in turn will generate Mail alerts from cron.

This can easily fixed with configuration, but I wonder, if it wouldn't make more sense to use stdout as the default

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

No branches or pull requests

1 participant