From 981ef143f63336380f3df110f2aed589781dc492 Mon Sep 17 00:00:00 2001 From: Ayberk Yilmaz <309940+ayberk@users.noreply.github.com> Date: Thu, 26 Feb 2026 14:10:23 -0800 Subject: [PATCH] Demote verbose IP logs to debug Reduce log noise by changing Infof to Debugf for routine IP address add and reconciliation messages in the datastore and IPAMD paths. These logs create unnecessary noise during normal operation. --- pkg/ipamd/datastore/data_store.go | 4 ++-- pkg/ipamd/ipamd.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/ipamd/datastore/data_store.go b/pkg/ipamd/datastore/data_store.go index 60d2bc63b0..d1ff604230 100644 --- a/pkg/ipamd/datastore/data_store.go +++ b/pkg/ipamd/datastore/data_store.go @@ -532,7 +532,7 @@ func (ds *DataStore) AddIPv4CidrToStore(eniID string, ipv4Cidr net.IPNet, isPref defer ds.lock.Unlock() strIPv4Cidr := ipv4Cidr.String() - ds.log.Infof("Adding %s to DS for %s", strIPv4Cidr, eniID) + ds.log.Debugf("Adding %s to DS for %s", strIPv4Cidr, eniID) curENI, ok := ds.eniPool[eniID] if !ok { ds.log.Infof("unknown ENI") @@ -541,7 +541,7 @@ func (ds *DataStore) AddIPv4CidrToStore(eniID string, ipv4Cidr net.IPNet, isPref // Already there _, ok = curENI.AvailableIPv4Cidrs[strIPv4Cidr] if ok { - ds.log.Infof("IP already in DS") + ds.log.Debugf("IP already in DS") return errors.New(IPAlreadyInStoreError) } diff --git a/pkg/ipamd/ipamd.go b/pkg/ipamd/ipamd.go index 261cf5fb48..2e11f45670 100644 --- a/pkg/ipamd/ipamd.go +++ b/pkg/ipamd/ipamd.go @@ -1810,7 +1810,7 @@ func (c *IPAMContext) verifyAndAddIPsToDatastore(ctx context.Context, eni string for _, privateIPv4 := range attachedENIIPs { strPrivateIPv4 := aws.ToString(privateIPv4.PrivateIpAddress) if strPrivateIPv4 == c.primaryIP[eni] { - log.Infof("Reconcile and skip primary IP %s on ENI %s", strPrivateIPv4, eni) + log.Debugf("Reconcile and skip primary IP %s on ENI %s", strPrivateIPv4, eni) continue } @@ -1856,7 +1856,7 @@ func (c *IPAMContext) verifyAndAddIPsToDatastore(ctx context.Context, eni string c.reconcileCooldownCache.Remove(strPrivateIPv4) } } - log.Infof("Trying to add %s", strPrivateIPv4) + log.Debugf("Trying to add %s", strPrivateIPv4) // Try to add the IP err := c.dataStoreAccess.GetDataStore(networkCard).AddIPv4CidrToStore(eni, ipv4Addr, false) if err != nil && err.Error() != datastore.IPAlreadyInStoreError {