-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Add a parent flag --log-level to the keadm and make it hidden for debug. #5547
base: master
Are you sure you want to change the base?
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
3beaee1
to
21a59c9
Compare
add to v1.17.@Shelley-BaoYue |
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.
Could you please add more description, and when the keadm output wil be print in log files or stdout?
cmd := cmd.NewKubeedgeCommand() | ||
flags := cmd.Flags() | ||
klog.InitFlags(flagSet) | ||
err := flagSet.Set("v", "0") |
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.
Is this default value must required?
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.
Is this default value must required?
yes
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.
This will bring out all klog flags, do we need to hide some?
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.
This will bring out all klog flags, do we need to hide some?
There will be no other klog flags introduced here, only "- v, -- v Level number for the log level verbosity"
PTAL,thanks @WillardHu @fisherxu |
Please modify the description |
ok |
/lgtm |
What type of PR is this?
/kind feature
What this PR does / why we need it:
Which issue(s) this PR fixes:
Fixes A part of #5317
Special notes for your reviewer:
Does this PR introduce a user-facing change?: