Browse code

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 authored on 26/03/2008 13:22:36
Showing 1 changed files
... ...
@@ -279,7 +279,8 @@ inline static struct dest_info *uri2dst(struct dest_info* dst,
279 279
 								parsed_uri.port_no, &dst->proto, dns_flags);
280 280
 			if (err!=0){
281 281
 				if (ip_found==0){
282
-					LOG(L_ERR, "ERROR: uri2dst: failed to resolve \"%.*s\" :"
282
+					if (err!=-E_DNS_EOR)
283
+						LOG(L_ERR, "ERROR: uri2dst: failed to resolve \"%.*s\" :"
283 284
 								"%s (%d)\n", host->len, ZSW(host->s),
284 285
 									dns_strerror(err), err);
285 286
 					return 0; /* error, no ip found */