Improved log messages

This commit is contained in:
Alvaro Saurin committed 2015-04-09 16:19:05 +02:00
1 parent 5d5b101707
commit 7811e2b470
3 files changed
+6 -4

No files matched your search

+3
View File
@@ -131,6 +131,9 @@ func (e cacheEntry) hasExpired(now time.Time) bool {
func (e *cacheEntry) setReply(reply *dns.Msg, ttl int, flags uint8, now time.Time) bool {
var prevValidUntil time.Time
if e.Status == stResolved {
if reply != nil {
Debug.Printf("[cache msgid %d] replacing response in cache", reply.MsgHdr.Id)
}
prevValidUntil = e.validUntil
}