aboutsummaryrefslogtreecommitdiffstats
path: root/net/unbound.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2021-01-05 20:02:46 +0100
committerKim Alvefur <zash@zash.se>2021-01-05 20:02:46 +0100
commitb4403aadddfe80d62290a7b8e98bff2738e834e2 (patch)
tree37f7b4726091de1d8cc6a84e97bb1d5814d057a6 /net/unbound.lua
parenta698496ef21e88ec0130c98b14e9cae37aefc694 (diff)
downloadprosody-b4403aadddfe80d62290a7b8e98bff2738e834e2.tar.gz
prosody-b4403aadddfe80d62290a7b8e98bff2738e834e2.zip
net.unbound: Don't pass error as logger formatting string
This could cause weirdness if the error contains formatting options, but should be reasonably safe with util.format
Diffstat (limited to 'net/unbound.lua')
-rw-r--r--net/unbound.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/unbound.lua b/net/unbound.lua
index 1d917a91..bc196c22 100644
--- a/net/unbound.lua
+++ b/net/unbound.lua
@@ -123,7 +123,7 @@ local function lookup(callback, qname, qtype, qclass)
if ret then
waiting_queries[ret] = callback;
else
- log("warn", err);
+ log("warn", "Resolver error: %s", err);
end
return ret, err;
end