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

Debug output is replicated in stdout #103

Open
ekquasar opened this issue May 9, 2023 · 2 comments
Open

Debug output is replicated in stdout #103

ekquasar opened this issue May 9, 2023 · 2 comments

Comments

@ekquasar
Copy link

ekquasar commented May 9, 2023

Running:

fsoc config set --auth oauth --server REDACTED -o json

gives this output:

The --server option is now deprecated. In the future, please use --url instead. We will set the url to "REDACTED" for you now

^ this error message is replicated in both stderr and stdout. This is a problem for scripting applications that use stdout programmatically. Debugging and error output should be only printed to stderr.

@pnickolov
Copy link
Contributor

@ekquasar will check and try to resolve. The config set command, afaik, doesn't have any data output (so a workaround would be to send stdout to /dev/null) but I agree this can/should be fixed.

@ekquasar
Copy link
Author

Yeah that's the workaround I ended up with, but as far as "polish" is concerned, this stuck out to me as a "sharp edge" so I figured I'd bring it to maintainers' attention.

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