diff options
author | Kim Alvefur <zash@zash.se> | 2021-01-05 20:02:46 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2021-01-05 20:02:46 +0100 |
commit | 071df60dac06d61e49f5624d18fb5599c1b06fd8 (patch) | |
tree | 37f7b4726091de1d8cc6a84e97bb1d5814d057a6 /net/unbound.lua | |
parent | 9d30a47bd2477a2455baa97940cd6e4b34da0e7e (diff) | |
download | prosody-071df60dac06d61e49f5624d18fb5599c1b06fd8.tar.gz prosody-071df60dac06d61e49f5624d18fb5599c1b06fd8.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.lua | 2 |
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 |