Do not print out "no more records" ERROR message when use_dns_failover
authorMiklos Tirpak <miklos@iptel.org>
Wed, 26 Mar 2008 13:22:36 +0000 (13:22 +0000)
committerMiklos Tirpak <miklos@iptel.org>
Wed, 26 Mar 2008 13:22:36 +0000 (13:22 +0000)
is enabled, it is not an error, simply there is no more destination
in the SRV or A record.

modules/tm/ut.h

index afe1006..59b555c 100644 (file)
@@ -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 */