static void deliver_info(struct DNSRequest *req);
-#undef log_debug
-#define log_debug log_warning
-
#ifdef LIBEVENT2
goto failed;
}
- log_debug("dns(%s): got_result_gai: count=%d, adrlen=%d", req->name, count, adrlen);
+ log_noise("dns(%s): got_result_gai: count=%d, adrlen=%d", req->name, count, adrlen);
req->res_pos = 0;
req->done = true;
if (ai->ai_family != af)
continue;
in = (void*)ai->ai_addr;
- log_debug("dns(%s) result: %s", req->name, inet_ntoa(in->sin_addr));
+ log_noise("dns(%s) result: %s", req->name, inet_ntoa(in->sin_addr));
memcpy(dst, &in->sin_addr, adrlen);
dst += adrlen;
}
goto failed;
} else if (type == DNS_IPv4_A) {
struct in_addr *a = addresses;
- log_debug("dns(%s): got_result_evdns: %s", req->name, inet_ntoa(*a));
+ log_noise("dns(%s): got_result_evdns: %s", req->name, inet_ntoa(*a));
req->res_af = AF_INET;
adrlen = 4;
} else {
if (node) {
req = container_of(node, struct DNSRequest, node);
} else {
- log_debug("dns: new req: %s", name);
+ log_noise("dns: new req: %s", name);
req = calloc(1, sizeof(*req));
if (!req)
goto nomem;
/* if already have final result, report it */
if (req->done) {
if (req->res_ttl < get_cached_time()) {
- log_debug("dns: ttl over: %s", req->name);
+ log_noise("dns: ttl over: %s", req->name);
req->done = false;
free(req->res_list);
req->res_list = NULL;