fix: use common logging implementation for DNSCache (#11284)

This commit is contained in:
Harshavardhana
2021-01-15 14:04:56 -08:00
committed by GitHub
parent 4e06a72632
commit c222bde14b
4 changed files with 11 additions and 6 deletions

View File

@@ -51,7 +51,7 @@ func init() {
logger.RegisterError(config.FmtError)
rand.Seed(time.Now().UTC().UnixNano())
globalDNSCache = xhttp.NewDNSCache(10*time.Second, 10*time.Second)
globalDNSCache = xhttp.NewDNSCache(10*time.Second, 10*time.Second, logger.LogOnceIf)
initGlobalContext()