File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
staging/src/k8s.io/apiserver/pkg/storage/cacher Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -400,6 +400,7 @@ func (c *Cacher) startCaching(stopChannel <-chan struct{}) {
400
400
c .watchCache .SetOnReplace (func () {
401
401
successfulList = true
402
402
c .ready .set (true )
403
+ klog .V (1 ).Infof ("cacher (%v): initialized" , c .objectType .String ())
403
404
})
404
405
defer func () {
405
406
if successfulList {
@@ -413,7 +414,7 @@ func (c *Cacher) startCaching(stopChannel <-chan struct{}) {
413
414
// Also note that startCaching is called in a loop, so there's no need
414
415
// to have another loop here.
415
416
if err := c .reflector .ListAndWatch (stopChannel ); err != nil {
416
- klog .Errorf ("unexpected ListAndWatch error: %v" , err )
417
+ klog .Errorf ("cacher (%v): unexpected ListAndWatch error: %v; reinitializing..." , c . objectType . String () , err )
417
418
}
418
419
}
419
420
You can’t perform that action at this time.
0 commit comments