mirror of
https://github.com/kubernetes/client-go.git
synced 2025-08-13 21:15:27 +00:00
Merge pull request #102788 from pohly/reflector-log-level
client-go: reduce log level of reflector again Kubernetes-commit: 60a4cbfdf617b94a28a76b302fd4cf04a704667c
This commit is contained in:
commit
1bccfc8c60
4
tools/cache/reflector.go
vendored
4
tools/cache/reflector.go
vendored
@ -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