mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 11:50:44 +00:00
Merge pull request #102788 from pohly/reflector-log-level
client-go: reduce log level of reflector again
This commit is contained in:
commit
60a4cbfdf6
@ -216,13 +216,13 @@ var internalPackages = []string{"client-go/tools/cache/"}
|
|||||||
// objects and subsequent deltas.
|
// objects and subsequent deltas.
|
||||||
// Run will exit when stopCh is closed.
|
// Run will exit when stopCh is closed.
|
||||||
func (r *Reflector) Run(stopCh <-chan struct{}) {
|
func (r *Reflector) Run(stopCh <-chan struct{}) {
|
||||||
klog.V(2).Infof("Starting reflector %s (%s) from %s", r.expectedTypeName, r.resyncPeriod, r.name)
|
klog.V(3).Infof("Starting reflector %s (%s) from %s", r.expectedTypeName, r.resyncPeriod, r.name)
|
||||||
wait.BackoffUntil(func() {
|
wait.BackoffUntil(func() {
|
||||||
if err := r.ListAndWatch(stopCh); err != nil {
|
if err := r.ListAndWatch(stopCh); err != nil {
|
||||||
r.watchErrorHandler(r, err)
|
r.watchErrorHandler(r, err)
|
||||||
}
|
}
|
||||||
}, r.backoffManager, true, stopCh)
|
}, r.backoffManager, true, stopCh)
|
||||||
klog.V(2).Infof("Stopping reflector %s (%s) from %s", r.expectedTypeName, r.resyncPeriod, r.name)
|
klog.V(3).Infof("Stopping reflector %s (%s) from %s", r.expectedTypeName, r.resyncPeriod, r.name)
|
||||||
}
|
}
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
Loading…
Reference in New Issue
Block a user