Skip to content

Consider to use stdout as default fd for Progressbar #51

@do3cc

Description

@do3cc

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions