-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
🌱 Set controller-runtime logger for clusterctl #9107
Conversation
Signed-off-by: Stefan Büringer buringerst@vmware.com
/hold |
/retest |
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.
/lgtm
/approve
(Hold is in place to ensure this fixes the reported issue)
LGTM label has been added. Git tree hash: eeadeafe4683906ad536d73f3e962e99b25f93a5
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: killianmuldoon 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 |
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.
/lgtm
@@ -163,7 +164,9 @@ func initConfig() { | |||
} | |||
} | |||
|
|||
logf.SetLogger(logf.NewLogger(logf.WithThreshold(verbosity))) | |||
log := logf.NewLogger(logf.WithThreshold(verbosity)) |
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 one! (de-encapsulate to encapsulate it again later :))
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 just extracted the statement we had before :) (didn't really think about it)
/hold cancel User confirmed that this fixed their issue. |
/cherry-pick release-1.5 |
@killianmuldoon: new pull request created: #9129 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/test-infra repository. |
logf.SetLogger(logf.NewLogger(logf.WithThreshold(verbosity))) | ||
log := logf.NewLogger(logf.WithThreshold(verbosity)) | ||
logf.SetLogger(log) | ||
ctrl.SetLogger(log) |
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.
Yes! the checks are working 😄
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.
Unfortunately missed it until after the release :) But yup worked.
I wonder in how many binaries / controllers this "panic" will pop up :D
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.
True, but it's doing what it's supposed to do 😄
/area logging |
Signed-off-by: Stefan Büringer buringerst@vmware.com
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 #9101