sstream-mirror outputs non-error output to stderr
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
simplestreams |
New
|
Undecided
|
Unassigned |
Bug Description
while trying to incorporate sstream-mirror into a shell script, I realised that the output is being dumped directly to stderr, rather than having normal output dumped to stdout with only error output being dumped to stderr.
Even when --progress is not used, and --log-file IS used, output like the following is still written to stderr, rather than stdout:
+ com.ubuntu.
+ com.ubuntu.
+ com.ubuntu.
+ com.ubuntu.
+ com.ubuntu.
+ com.ubuntu.
What should happen is ONLY error messaging is written to stderr, and information like the above is written quietly to LOG_FILE when specified OR stdout when --log-file is not.
Even better, NO output is generated at all to screen (except for error messaging) unless --verbose is used.
So behaviour would look something like this:
--verbose would trigger full console output.
--log-file LOG_FILE would dump all output to LOG_FILE (regardless of verbose or quiet selection)
--quiet would suppress console output (except for error messages)