mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-05 10:19:50 +00:00
add level for print flags
Signed-off-by: sakeven <jc5930@sina.cn>
This commit is contained in:
parent
4e1b608391
commit
8b1a08a919
@ -49,6 +49,6 @@ func InitFlags() {
|
|||||||
pflag.CommandLine.AddGoFlagSet(goflag.CommandLine)
|
pflag.CommandLine.AddGoFlagSet(goflag.CommandLine)
|
||||||
pflag.Parse()
|
pflag.Parse()
|
||||||
pflag.VisitAll(func(flag *pflag.Flag) {
|
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)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user