All Console output is standard error
See original GitHub issueIssue Description
Good day,
Thank you for this great tool,
I’m calling rio cogeo
from another application, I would like to know why any output of the program is flagged as a standard error.
for example
https://github.com/cogeotiff/rio-cogeo/blob/45b462e9503d29fe077b27a35d4b0e517c9fa76b/rio_cogeo/cogeo.py#L294
Issue Analytics
- State:
- Created 5 months ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
Redirecting error from Command Prompt - Visual C++
The regular output is sent to Standard Out (STDOUT) and the error messages are sent to Standard Error (STDERR). When you redirect console...
Read more >How to redirect standard (stderr) error in bash - nixCraft
Standard error (also known as stderr) is the default error output device. Use stderr to write all system error messages. The number (FD...
Read more >process - When run a program in C#, all the messages go to ...
First 5 lines (include empty lines) go to the standard error, last 2 lines go to the standard output. So I can strip...
Read more >How to redirect standard error output for a .NET console ...
The standard error output channel can be overridden. All you need is an object which derives from the abstract TextWriter class.
Read more >Functions of Stderr in C with Different Examples - eduCBA
Stderr is the standard error message that is used to print the output on the screen or windows terminal. Stderr is used to...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
As another opinion, I agree with this article that all informational updates, like in this context, should go to
stderr
, notstdout
.The main usefulness of printing informative updates to
stderr
is that piping to other CLI programs works better because only the actual data is onstdout
.@kylebarron, Thanks for the explanation, Apologies for not being clear enough. I have a python script that calls the cog_translate API among other things, (this script is later called through the CLI via C#).
I didn’t think of that, I believe that will work for my use case. I will close this issue. Thank you!
I still believe having a progress callback might be a nice addition perhaps I should open another issue for that, let me know your thoughts.