Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

program output to stdout instead stderr #37

Merged
merged 1 commit into from
Nov 3, 2024

Conversation

leventyalcin
Copy link
Contributor

The program's output should go to stdout, while other messages (info, error) should go to stderr as expected. This change allows me to pipe the output to other commands (e.g., grep, awk) without anything else from the logger, or without needing to use it like little-timmy 2>&1|grep foo.

@hoo29
Copy link
Owner

hoo29 commented Nov 3, 2024

Thanks! If you didn't know the -j json output option already did this and is probably a lot easier to parse.

@hoo29 hoo29 merged commit 17a388e into hoo29:main Nov 3, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants