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

@@ -107,7 +107,7 @@ func TestMain(m *testing.M) {
// Initialize globalConsoleSys system
globalConsoleSys = NewConsoleLogger(context.Background())
globalDNSCache = xhttp.NewDNSCache(3*time.Second, 10*time.Second)
globalDNSCache = xhttp.NewDNSCache(3*time.Second, 10*time.Second, logger.LogOnceIf)
globalInternodeTransport = newInternodeHTTPTransport(nil, rest.DefaultTimeout)()