-
Notifications
You must be signed in to change notification settings - Fork 385
Add ability to set log level and enable json logging for all consul-k8s commands #980
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 god. One question about the move to sh -ec
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.
For a command like consul-sidecar for connect-injected pods that doesn't have its logLevel/logJSON set here, do you need to add something to the consul-k8s PR to invoke that internal command with the right flag based on the global value?
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.
Nice work!!
Should we have a follow-up PR that sets the log level/json for Consul clients/servers too? |
Yup this was only for subcommands. |
Changes proposed in this PR:
global.logJSON
global.logLevel
NOTES:
How I've tested this PR:
unit tests, acceptance tests pass
How I expect reviewers to test this PR:
code review, acceptance tests pass
Also have manually testing using steps in hashicorp/consul-k8s#523
Checklist: