net.adns: Reduce 'Exhausted all servers' message to warning

It happens often and generally doesn't require admin intervention.
This commit is contained in:
Matthew Wild 2020-12-08 15:49:25 +00:00
parent 966ae3e996
commit ee1f17a301

View file

@ -43,7 +43,7 @@ local function new_async_socket(sock, resolver)
log("warn", "DNS socket for %s disconnected: %s", peername, err);
local servers = resolver.server;
if resolver.socketset[conn] == resolver.best_server and resolver.best_server == #servers then
log("error", "Exhausted all %d configured DNS servers, next lookup will try %s again", #servers, servers[1]);
log("warn", "Exhausted all %d configured DNS servers, next lookup will try %s again", #servers, servers[1]);
end
resolver:servfail(conn); -- Let the magic commence