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 | b4403aadddfe80d62290a7b8e98bff2738e834e2 (patch) | |
tree | 37f7b4726091de1d8cc6a84e97bb1d5814d057a6 /net/unbound.lua | |
parent | a698496ef21e88ec0130c98b14e9cae37aefc694 (diff) | |
download | prosody-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.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 |