diff --git a/pkg/ipam/sync.go b/pkg/ipam/sync.go index a84991322b..0e953df4e5 100644 --- a/pkg/ipam/sync.go +++ b/pkg/ipam/sync.go @@ -29,6 +29,7 @@ import ( func (lipam *LiqoIPAM) sync(ctx context.Context, syncFrequency time.Duration) { err := wait.PollUntilContextCancel(ctx, syncFrequency, false, func(ctx context.Context) (done bool, err error) { + klog.Info("Started IPAM cache sync routine") now := time.Now() // networks created before this threshold will be removed from the cache if they are not present in the cluster. expiredThreshold := now.Add(-syncFrequency) @@ -43,10 +44,11 @@ func (lipam *LiqoIPAM) sync(ctx context.Context, syncFrequency time.Duration) { return false, err } + klog.Info("Completed IPAM cache sync routine") return false, nil }) if err != nil { - klog.Error(err) + klog.Errorf("IPAM cache sync routine failed: %v", err) os.Exit(1) } }