mirror of
https://github.com/bjc/prosody.git
synced 2025-04-04 13:47:41 +03:00
net.adns: Reduce 'Exhausted all servers' message to warning
It happens often and generally doesn't require admin intervention.
This commit is contained in:
parent
966ae3e996
commit
ee1f17a301
1 changed files with 1 additions and 1 deletions
|
@ -43,7 +43,7 @@ local function new_async_socket(sock, resolver)
|
||||||
log("warn", "DNS socket for %s disconnected: %s", peername, err);
|
log("warn", "DNS socket for %s disconnected: %s", peername, err);
|
||||||
local servers = resolver.server;
|
local servers = resolver.server;
|
||||||
if resolver.socketset[conn] == resolver.best_server and resolver.best_server == #servers then
|
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
|
end
|
||||||
|
|
||||||
resolver:servfail(conn); -- Let the magic commence
|
resolver:servfail(conn); -- Let the magic commence
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue