Prechádzať zdrojové kódy

Do not print out "no more records" ERROR message when use_dns_failover
is enabled, it is not an error, simply there is no more destination
in the SRV or A record.

Miklos Tirpak 17 rokov pred
rodič
commit
c9402e00fb
1 zmenil súbory, kde vykonal 2 pridanie a 1 odobranie
  1. 2 1
      modules/tm/ut.h

+ 2 - 1
modules/tm/ut.h

@@ -279,7 +279,8 @@ inline static struct dest_info *uri2dst(struct dest_info* dst,
 								parsed_uri.port_no, &dst->proto, dns_flags);
 			if (err!=0){
 				if (ip_found==0){
-					LOG(L_ERR, "ERROR: uri2dst: failed to resolve \"%.*s\" :"
+					if (err!=-E_DNS_EOR)
+						LOG(L_ERR, "ERROR: uri2dst: failed to resolve \"%.*s\" :"
 								"%s (%d)\n", host->len, ZSW(host->s),
 									dns_strerror(err), err);
 					return 0; /* error, no ip found */