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

Emit packager status/logging messages to stderr #6068

Closed
mlutze opened this issue Jun 7, 2023 · 6 comments · Fixed by #6072
Closed

Emit packager status/logging messages to stderr #6068

mlutze opened this issue Jun 7, 2023 · 6 comments · Fixed by #6072

Comments

@mlutze
Copy link
Member

mlutze commented Jun 7, 2023

Currently these are sent to stdout, which breaks anything consuming e.g. JSON output.

@magnus-madsen
Copy link
Member

Or suppress non-errors if --json is present?

@mlutze
Copy link
Member Author

mlutze commented Jun 7, 2023

Or suppress non-errors if --json is present?

Maybe as a quick fix. But IMO it is reasonable for the user to want loggy info while piping the result somewhere else. We just need to be more principled with distinguishing between primary and secondary output.

@magnus-madsen
Copy link
Member

Or suppress non-errors if --json is present?

Maybe as a quick fix. But IMO it is reasonable for the user to want loggy info while piping the result somewhere else. We just need to be more principled with distinguishing between primary and secondary output.

Roger

@magnus-madsen
Copy link
Member

What the packager is printing is not really errors though...

@mlutze
Copy link
Member Author

mlutze commented Jun 7, 2023

What the packager is printing is not really errors though...

True, but stderr is not exclusively for errors. POSIX says for writing diagnostic output

@magnus-madsen
Copy link
Member

Ok

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 a pull request may close this issue.

2 participants