NiltonVolpato / python-progressbar

Text progress bar library for Python
Other
412 stars 105 forks source link

Consider to use stdout as default fd for Progressbar #51

Open do3cc opened 8 years ago

do3cc commented 8 years ago

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