mirror of https://github.com/grpc/grpc-java.git
grpclb: improve log for SRV lookup failure (#7647)
This commit is contained in:
parent
fa1f900856
commit
ca12e7a339
|
|
@ -110,9 +110,10 @@ final class GrpclbNameResolver extends DnsNameResolver {
|
|||
}
|
||||
}
|
||||
}
|
||||
if (srvRecordsException != null
|
||||
|| (balancerAddressesException != null && balancerAddresses.isEmpty())) {
|
||||
logger.log(Level.FINE, "Balancer resolution failure", srvRecordsException);
|
||||
if (srvRecordsException != null) {
|
||||
logger.log(Level.FINE, "SRV lookup failure", srvRecordsException);
|
||||
} else if (balancerAddressesException != null && balancerAddresses.isEmpty()) {
|
||||
logger.log(Level.FINE, "SRV-provided hostname lookup failure", balancerAddressesException);
|
||||
}
|
||||
return Collections.unmodifiableList(balancerAddresses);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue