Comparison

net/adns.lua @ 11217:65ce1178d655

net.adns: Reduce 'Exhausted all servers' message to warning It happens often and generally doesn't require admin intervention.
author Matthew Wild <mwild1@gmail.com>
date Tue, 08 Dec 2020 15:49:25 +0000
parent 10974:3b9d533da8fe
child 11267:97077089f3c2
comparison
equal deleted inserted replaced
11216:7a8745599e38 11217:65ce1178d655
41 function listener.ondisconnect(conn, err) 41 function listener.ondisconnect(conn, err)
42 if err then 42 if err then
43 log("warn", "DNS socket for %s disconnected: %s", peername, err); 43 log("warn", "DNS socket for %s disconnected: %s", peername, err);
44 local servers = resolver.server; 44 local servers = resolver.server;
45 if resolver.socketset[conn] == resolver.best_server and resolver.best_server == #servers then 45 if resolver.socketset[conn] == resolver.best_server and resolver.best_server == #servers then
46 log("error", "Exhausted all %d configured DNS servers, next lookup will try %s again", #servers, servers[1]); 46 log("warn", "Exhausted all %d configured DNS servers, next lookup will try %s again", #servers, servers[1]);
47 end 47 end
48 48
49 resolver:servfail(conn); -- Let the magic commence 49 resolver:servfail(conn); -- Let the magic commence
50 end 50 end
51 end 51 end