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

Output from -version is written to stder rather than stdout #1452

Closed
filipetoscano opened this issue Feb 7, 2021 · 0 comments · Fixed by #1455
Closed

Output from -version is written to stder rather than stdout #1452

filipetoscano opened this issue Feb 7, 2021 · 0 comments · Fixed by #1455
Labels
Milestone

Comments

@filipetoscano
Copy link

Consul Template version

consul-template v0.25.1 (b11fa80)

Command

# consul-template -version

Debug output

$ consul-template -v -log-level=trace 1> stdout.txt 2> stderr.txt
$ cat stdout.txt
$ cat stderr.txt
2021/02/07 04:26:15.301487 [INFO] consul-template v0.25.1 (b11fa800)
2021/02/07 04:26:15.301517 [DEBUG] (cli) version flag was given, exiting now
consul-template v0.25.1 (b11fa800)

$ consul-template -v 1> stdout.txt 2> stderr.txt
$ cat stdout.txt
$ cat stderr.txt
consul-template v0.25.1 (b11fa800)

Expected behavior

Version information should have been written to stdout, rather than stderr (like other hashicorp products).

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

Successfully merging a pull request may close this issue.

2 participants