mirror of https://github.com/k3s-io/k3s
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.pull/8/head
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