Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

All Console output is standard error

See original GitHub issue

Issue 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

Issue Analytics

  • State:closed
  • Created 5 months ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

kylebarroncommented, Sep 12, 2022

As another opinion, I agree with this article that all informational updates, like in this context, should go to stderr, not stdout.

Standard output is where your script main’s output should go. For instance, the command ls is responsible for listing the content of a directory. This listing goes to stdout.

Standard error is where debugging information and errors should go. The name is a bit misleading because you can use it to display runtime informations and not only errors.

The main usefulness of printing informative updates to stderr is that piping to other CLI programs works better because only the actual data is on stdout.

im28commented, Sep 13, 2022

@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#).

If it’s via a shell process the main way you’d usually find if it errored is through a non-zero exit code

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found