update resolver

This commit is contained in:
ginuerzh
2023-11-08 20:51:43 +08:00
parent 6980fcfb19
commit a697bf2e35
4 changed files with 84 additions and 4 deletions

View File

@ -66,7 +66,7 @@ func (c *Cache) Load(key CacheKey) (msg *dns.Msg, ttl time.Duration) {
}
ttl = item.ttl - time.Since(item.ts)
c.logger.Debugf("hit resolver cache: %s, ttl: %v", key, ttl)
c.logger.Debugf("resolver cache hit: %s, ttl: %v", key, ttl)
return
}