-
Notifications
You must be signed in to change notification settings - Fork 1.2k
⚠ Improve logging by adopting contextual logging #3149
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
⚠ Improve logging by adopting contextual logging #3149
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. In 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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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. Git 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
Needs 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