This was done inconsistently between the different backends. Some
used log_warning() for conditions that would ultimately be fatal.
{
ctx->edns = evdns_base_new(NULL, 1);
if (!ctx->edns) {
- log_warning("evdns_base_new failed");
+ log_error("evdns_base_new failed");
return false;
}
return true;
/* i/o callback setup */
fd = dns_open(dctx);
if (fd <= 0) {
- log_warning("dns_open failed: fd=%d", fd);
+ log_error("dns_open failed: fd=%d", fd);
return false;
}
event_set(&udns->ev_io, fd, EV_READ | EV_PERSIST, udns_io_cb, ctx);