-
Notifications
You must be signed in to change notification settings - Fork 634
Align logging practices with cluster-api #3722
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
Align logging practices with cluster-api #3722
Conversation
|
Hmmm, not sure if I'm done yet. CAPA does already some nice logging practices such as using ctx logger in reconcile loops. But I feel like I'm missing something still... I will look at |
18cdeec to
2bfb29e
Compare
|
This looks good 👍 |
|
@Ankitasw True. It might warrant a separate PR to handle |
|
Ok, makes sense. |
|
/lgtm |
|
There are few other changes done in CAPV like using "sigs.k8s.io/controller-runtime instead of "sigs.k8s.io/controller-runtime/pkg/log". kubernetes-sigs/cluster-api-provider-vsphere@df945ea Also, does this PR cover the https://cluster-api.sigs.k8s.io/developer/providers/v1.1-to-v1.2.html logging section, there are bunch of changes in main in this doc. /hold |
|
Ah, thanks, @sedefsavas! I shall take a look and incorporate those changes. :) |
4d9f9ab to
08b1db3
Compare
c21dd6a to
cf69fc8
Compare
cmd/clusterawsadm/cmd/root.go
Outdated
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.
I don't think this was ever working before properly. :D
This was trying to use the package local variable but created a new one instead.
ad0e277 to
2d3f98b
Compare
Logs are looking good. :) |
2d3f98b to
e4ea6e3
Compare
|
/hold cancel |
|
Turned out to be simple. :) |
e4ea6e3 to
d0d2fc3
Compare
|
/approve |
d0d2fc3 to
a867db9
Compare
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: richardcase, sedefsavas The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What type of PR is this?
/kind feature
What this PR does / why we need it:
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)format, will close the issue(s) when PR gets merged):Fixes #3626
Special notes for your reviewer:
Checklist: