aboutsummaryrefslogtreecommitdiffstats
path: root/net/adns.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2019-07-30 02:35:17 +0200
committerKim Alvefur <zash@zash.se>2019-07-30 02:35:17 +0200
commit75bfec7731e0d42ad5733a62b9772db9c72aeef9 (patch)
tree393b21ff37fe75f1a9f2a27c7647d89760546ebb /net/adns.lua
parent40b1e3e0ed1223517f29bcf136fc08a6f33b17f2 (diff)
downloadprosody-75bfec7731e0d42ad5733a62b9772db9c72aeef9.tar.gz
prosody-75bfec7731e0d42ad5733a62b9772db9c72aeef9.zip
net.*: Remove tostring call from logging
Taken care of by loggingmanager now
Diffstat (limited to 'net/adns.lua')
-rw-r--r--net/adns.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/net/adns.lua b/net/adns.lua
index 4fa01f8a..5050c23b 100644
--- a/net/adns.lua
+++ b/net/adns.lua
@@ -73,11 +73,11 @@ function async_resolver_methods:lookup(handler, qname, qtype, qclass)
handler(peek);
return;
end
- log("debug", "Records for %s not in cache, sending query (%s)...", qname, tostring(coroutine.running()));
+ log("debug", "Records for %s not in cache, sending query (%s)...", qname, coroutine.running());
local ok, err = resolver:query(qname, qtype, qclass);
if ok then
coroutine.yield(setmetatable({ resolver, qclass or "IN", qtype or "A", qname, coroutine.running()}, query_mt)); -- Wait for reply
- log("debug", "Reply for %s (%s)", qname, tostring(coroutine.running()));
+ log("debug", "Reply for %s (%s)", qname, coroutine.running());
end
if ok then
ok, err = pcall(handler, resolver:peek(qname, qtype, qclass));
@@ -86,13 +86,13 @@ function async_resolver_methods:lookup(handler, qname, qtype, qclass)
ok, err = pcall(handler, nil, err);
end
if not ok then
- log("error", "Error in DNS response handler: %s", tostring(err));
+ log("error", "Error in DNS response handler: %s", err);
end
end)(resolver:peek(qname, qtype, qclass));
end
function query_methods:cancel(call_handler, reason) -- luacheck: ignore 212/reason
- log("warn", "Cancelling DNS lookup for %s", tostring(self[4]));
+ log("warn", "Cancelling DNS lookup for %s", self[4]);
self[1].cancel(self[2], self[3], self[4], self[5], call_handler);
end