From 0ef42133a18ca714a3a7d6af7e593c0d37887c7d Mon Sep 17 00:00:00 2001 From: Quan Tian Date: Fri, 19 Jan 2024 19:43:34 +0800 Subject: [PATCH] Reduce verbose logs in MetaAllocator "Finished sync for CIDRs" was logged every 10 mins even there was no change. Signed-off-by: Quan Tian --- pkg/registry/core/service/ipallocator/cidrallocator.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/registry/core/service/ipallocator/cidrallocator.go b/pkg/registry/core/service/ipallocator/cidrallocator.go index 4839a59d967..2c2f0ad08c9 100644 --- a/pkg/registry/core/service/ipallocator/cidrallocator.go +++ b/pkg/registry/core/service/ipallocator/cidrallocator.go @@ -178,7 +178,7 @@ func (c *MetaAllocator) processNextItem() bool { func (c *MetaAllocator) syncTree() error { now := time.Now() defer func() { - klog.Infof("Finished sync for CIDRs took %v", time.Since(now)) + klog.V(2).Infof("Finished sync for CIDRs took %v", time.Since(now)) }() serviceCIDRs, err := c.serviceCIDRLister.List(labels.Everything())