diff --git a/ipamd/ipamd.go b/ipamd/ipamd.go index 29fe496df26..df8821e510a 100644 --- a/ipamd/ipamd.go +++ b/ipamd/ipamd.go @@ -824,9 +824,9 @@ func (c *IPAMContext) nodeIPPoolTooLow() bool { available := total - used poolTooLow := available < c.maxIPsPerENI*c.warmENITarget || (c.warmENITarget == 0 && available == 0) if poolTooLow { - log.Debugf("IP pool is too low: available (%d) < ENI target (%d) * addrsPerENI (%d)", available, c.warmENITarget, c.maxIPsPerENI) + log.Tracef("IP pool is too low: available (%d) < ENI target (%d) * addrsPerENI (%d)", available, c.warmENITarget, c.maxIPsPerENI) } else { - log.Debugf("IP pool is NOT too low: available (%d) >= ENI target (%d) * addrsPerENI (%d)", available, c.warmENITarget, c.maxIPsPerENI) + log.Tracef("IP pool is NOT too low: available (%d) >= ENI target (%d) * addrsPerENI (%d)", available, c.warmENITarget, c.maxIPsPerENI) } return poolTooLow } @@ -857,9 +857,9 @@ func (c *IPAMContext) shouldRemoveExtraENIs() bool { // We need the +1 to make sure we are not going below the WARM_ENI_TARGET. shouldRemoveExtra := available >= (c.warmENITarget+1)*c.maxIPsPerENI if shouldRemoveExtra { - log.Debugf("It might be possible to remove extra ENIs because available (%d) >= (ENI target (%d) + 1) * addrsPerENI (%d): ", available, c.warmENITarget, c.maxIPsPerENI) + log.Tracef("It might be possible to remove extra ENIs because available (%d) >= (ENI target (%d) + 1) * addrsPerENI (%d): ", available, c.warmENITarget, c.maxIPsPerENI) } else { - log.Debugf("Its NOT possible to remove extra ENIs because available (%d) < (ENI target (%d) + 1) * addrsPerENI (%d): ", available, c.warmENITarget, c.maxIPsPerENI) + log.Tracef("Its NOT possible to remove extra ENIs because available (%d) < (ENI target (%d) + 1) * addrsPerENI (%d): ", available, c.warmENITarget, c.maxIPsPerENI) } return shouldRemoveExtra } @@ -1046,7 +1046,7 @@ func (c *IPAMContext) ipTargetState() (short int, over int, enabled bool) { // over is the number of available IPs we have beyond the warm IP target over = max(available-c.warmIPTarget, 0) - log.Debugf("Current warm IP stats: target: %d, total: %d, assigned: %d, available: %d, short: %d, over %d", c.warmIPTarget, total, assigned, available, short, over) + log.Tracef("Current warm IP stats: target: %d, total: %d, assigned: %d, available: %d, short: %d, over %d", c.warmIPTarget, total, assigned, available, short, over) return short, over, true } diff --git a/pkg/utils/logger/logger.go b/pkg/utils/logger/logger.go index 2bedc73365e..a1b4029a835 100644 --- a/pkg/utils/logger/logger.go +++ b/pkg/utils/logger/logger.go @@ -34,7 +34,7 @@ const ( %s - + `