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

Requirements Checker outputs on stdout instead of stderr #678

Closed
arnegroskurth opened this issue Jun 22, 2022 · 0 comments · Fixed by #679
Closed

Requirements Checker outputs on stdout instead of stderr #678

arnegroskurth opened this issue Jun 22, 2022 · 0 comments · Fixed by #679

Comments

@arnegroskurth
Copy link
Contributor

Bug report

Question Answer
Box version 3.16.0
PHP version 8.1.7
Platform with version Linux

This could also be considered a CR/FR but as it causes unexpected behaviour for software packaged with box, I rather think of it as a bug. The program arises when the program being packaged with box writes structured output (e.g. json) to stdout and its corresponding (debug-)logs to stderr. Activating debug-level logging via -vvv for the packaged program now breaks the json-output as the box-logs are also printed on stdout.
As the output of the requirements checker is rather diagnostic then conversational (see: https://pubs.opengroup.org/onlinepubs/9699919799/functions/stderr.html), I would expect to have that output on stderr.

For discussions around using stdout/stderr for logging:

IMO this should be resolved by just switching the stream here but in case this is considered a BC, it should at least become configurable somehow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants