summaryrefslogtreecommitdiff
path: root/main/dns.c
diff options
context:
space:
mode:
authorGeorge Joseph <george.joseph@fairview5.com>2015-11-30 10:13:35 -0700
committerGeorge Joseph <george.joseph@fairview5.com>2015-11-30 10:13:35 -0700
commite5723d27763b85b66972a275cd90f4a592bcc21f (patch)
tree74a3faf888fb76701a913c5f423c4a5a215c7df5 /main/dns.c
parent7cb8f2f33eef3e1f47da1313a3154a6dacb89e05 (diff)
dns: Change lookup failures from LOG_ERROR to debug 1.
dns.c and dns_system_resolver.c were spitting out errors for lookup failures for things like not finding a SRV record even though there was an A record. Those have been changed to debug messages. Logging not finding ANY record is left to the higher level caller. Also, dns_system_resolver was using Windows line endings so I converted them to Unix style. The actual log changes are on lines 156 and 159. Change-Id: I65be16ea15304b96f9dcb4d289dbd3e2286fc094
Diffstat (limited to 'main/dns.c')
-rw-r--r--main/dns.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/dns.c b/main/dns.c
index e338d768b..96227949e 100644
--- a/main/dns.c
+++ b/main/dns.c
@@ -558,7 +558,7 @@ enum ast_dns_search_result ast_search_dns_ex(void *context, const char *dname, i
sizeof(dns_response));
if (dns_response_len < 0) {
- ast_log(LOG_ERROR, "DNS search failed for %s\n", dname);
+ ast_debug(1, "DNS search failed for %s\n", dname);
response_handler(context, (unsigned char *)"", 0, ns_r_nxdomain);
return AST_DNS_SEARCH_FAILURE;
}