-
Notifications
You must be signed in to change notification settings - Fork 326
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
cli: install - move not ready library log messages behind -verbose flag #810
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good, thanks david!!
adding -v alias Co-authored-by: Nitya Dhanushkodi <nitya@hashicorp.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sweet!
c.UI.Output(logMsg, terminal.WithLibraryStyle()) | ||
} else { | ||
// When verbose is not enabled, output all logs except not ready messages for resources | ||
if !strings.Contains(logMsg, "not ready") { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Definitely works for now. Might be worth revisiting in the future. I might look into refactoring this later to have a generalized logger that can have a verbose setting. This is totally good for now though.
Co-authored-by: Thomas Eckert <teckert@hashicorp.com>
This commit deprecates helm value lifecycleSidecarContainer and replaces it with consulSidecarContainer. It also replaces all uses of lifecycle sidecar with consul sidecar, including container names, commands, and flags. This is to enable future functionality within the consul-sidecar container, since it may no longer be only responsible for managing lifecycle.
Changes proposed in this PR:
Default behavior with no
-verbose
flag.Behaviour when
-verbose
is set totrue
How I've tested this PR:
Tested locally with reduced log messages.
How I expect reviewers to test this PR:
Checklist: