⚠ Improve logging by adopting contextual logging#3149
⚠ Improve logging by adopting contextual logging#3149k8s-ci-robot merged 2 commits intokubernetes-sigs:mainfrom
Conversation
|
/assign @vincepri @alvaroaleman |
…rashWithLogger Signed-off-by: Stefan Büringer buringerst@vmware.com
85185e4 to
eef257b
Compare
|
@sbueringer: GitHub didn't allow me to request PR reviews from the following users: alexanderstephan. Note that only kubernetes-sigs members and repo collaborators can review this PR, and authors cannot review their own PRs. DetailsIn response to this: Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
a591e40 to
9a7c585
Compare
|
cc @pohly (just fyi) |
|
/retest |
9a7c585 to
32fa5a8
Compare
| "sigs.k8s.io/controller-runtime/pkg/internal/syncs" | ||
| ) | ||
|
|
||
| var log = logf.RuntimeLog.WithName("cache") |
There was a problem hiding this comment.
Obviously nothing to do with this change but we should stop hardcoding loggers like this and make them configurable (they can still default to something like this if unset ofc)
There was a problem hiding this comment.
Yeah. I was following existing patterns but I also don't like it.
Btw this logger uses the one from ctrl.SetLogger underneath.
|
LGTM label has been added. DetailsGit tree hash: db55bae9ab0b2c4a6936eb882b80c29ade4d6fe4 |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: alvaroaleman, sbueringer The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Signed-off-by: Stefan Büringer buringerst@vmware.com
Follow-up to #3104 (comment)
Fixes #2987