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

logging messages should go to stderr over stdout #1339

Open
daylinmorgan opened this issue Jan 23, 2025 · 1 comment
Open

logging messages should go to stderr over stdout #1339

daylinmorgan opened this issue Jan 23, 2025 · 1 comment

Comments

@daylinmorgan
Copy link
Contributor

Currently nimble writes all of it's logging messages to stdout but they should probably be going to stderr, particularly since
something like nimble dump --json with actual output data should be straightforward to pipe to another process or file.

If you run nimble dump --json in a project with a nimbledeps directory you'll also get Warning: Using project local deps mode making the output less usable.

Should be a simple change if all the logging is already routed through nimblepkg/cli.display

@Araq
Copy link
Member

Araq commented Jan 24, 2025

Fwiw I don't like stderr as it means >file.txt redirection doesn't work and you can never see the output stream that is used. The stderr/stdout distinction is more annoying than it is useful.

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

No branches or pull requests

2 participants