Skip to content

Commit

Permalink
Fix logging for expired FQDN IPs
Browse files Browse the repository at this point in the history
Current logging has been implemented in #14878 using Warning level.
As reported in #15935 this causes lots of log lines to be generated at
each garbage collection cycle.
The fix here is to move the log generation from Warning to Debug.

Fixes: #15935

Signed-off-by: Youssef Azrak <yazrak.tech@gmail.com>
  • Loading branch information
youssefazrak authored and jrajahalme committed May 6, 2021
1 parent adb5ccf commit 6522dfd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/fqdn/cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -801,7 +801,7 @@ func (zombies *DNSZombieMappings) isZombieAlive(zombie *DNSZombieMapping, aliveN
log.WithFields(logrus.Fields{
logfields.DNSName: name,
logfields.IPAddr: zombie.IP,
}).Warn("FQDN has multiple IPs. One IP has an expired TTL.")
}).Debug("FQDN has multiple IPs. One IP has an expired TTL.")
return true
}
}
Expand Down

0 comments on commit 6522dfd

Please sign in to comment.