Commit 1a93dd60 authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

Merge pull request #47945 from sakeven/fix/add_level_for_print_flags

Automatic merge from submit-queue (batch tested with PRs 47883, 47179, 46966, 47982, 47945) add level for print flags Signed-off-by: 's avatarsakeven <jc5930@sina.cn> **What this PR does / why we need it**: It's ugly to print all flags whenever. **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #47932 **Special notes for your reviewer**: **Release note**: ``` NONE ```
parents a7889896 8b1a08a9
......@@ -49,6 +49,6 @@ func InitFlags() {
pflag.CommandLine.AddGoFlagSet(goflag.CommandLine)
pflag.Parse()
pflag.VisitAll(func(flag *pflag.Flag) {
glog.Infof("FLAG: --%s=%q", flag.Name, flag.Value)
glog.V(4).Infof("FLAG: --%s=%q", flag.Name, flag.Value)
})
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment