File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ import (
2929func (lipam * LiqoIPAM ) sync (ctx context.Context , syncFrequency time.Duration ) {
3030 err := wait .PollUntilContextCancel (ctx , syncFrequency , false ,
3131 func (ctx context.Context ) (done bool , err error ) {
32+ klog .Info ("Started IPAM cache sync routine" )
3233 now := time .Now ()
3334 // networks created before this threshold will be removed from the cache if they are not present in the cluster.
3435 expiredThreshold := now .Add (- syncFrequency )
@@ -43,10 +44,11 @@ func (lipam *LiqoIPAM) sync(ctx context.Context, syncFrequency time.Duration) {
4344 return false , err
4445 }
4546
47+ klog .Info ("Completed IPAM cache sync routine" )
4648 return false , nil
4749 })
4850 if err != nil {
49- klog .Error ( err )
51+ klog .Errorf ( "IPAM cache sync routine failed: %v" , err )
5052 os .Exit (1 )
5153 }
5254}
You can’t perform that action at this time.
0 commit comments