mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-22 19:31:44 +00:00
apiserver: do not print feature gates for glog v=0
Demand verbosity level > 0 for glog Infof() calls when setting feature gates in pkg/util/feature_gate.go.
This commit is contained in:
parent
ee2e11a0d4
commit
ac5f5b4099
@ -191,7 +191,7 @@ func (f *featureGate) Set(value string) error {
|
||||
f.known.Store(known)
|
||||
f.enabled.Store(enabled)
|
||||
|
||||
glog.Infof("feature gates: %v", enabled)
|
||||
glog.V(1).Infof("feature gates: %v", enabled)
|
||||
return nil
|
||||
}
|
||||
|
||||
@ -227,7 +227,7 @@ func (f *featureGate) SetFromMap(m map[string]bool) error {
|
||||
f.known.Store(known)
|
||||
f.enabled.Store(enabled)
|
||||
|
||||
glog.Infof("feature gates: %v", f.enabled)
|
||||
glog.V(1).Infof("feature gates: %v", f.enabled)
|
||||
return nil
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user