aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2021-01-05 19:53:40 +0100
committerKim Alvefur <zash@zash.se>2021-01-05 19:53:40 +0100
commita698496ef21e88ec0130c98b14e9cae37aefc694 (patch)
treefeccc6bf93d1bf2e73fb14670a0a4bbc0aea872b
parentfb6fb88474f05fce85a5621efd9f2c83261e8fba (diff)
downloadprosody-a698496ef21e88ec0130c98b14e9cae37aefc694.tar.gz
prosody-a698496ef21e88ec0130c98b14e9cae37aefc694.zip
net.unbound: Log net.server interactions
Noticed the potential need for this thanks to Ge0rG
-rw-r--r--net/unbound.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/unbound.lua b/net/unbound.lua
index 49f220e1..1d917a91 100644
--- a/net/unbound.lua
+++ b/net/unbound.lua
@@ -45,7 +45,9 @@ end
-- Note: libunbound will default to using root hints if resolvconf is unset
local function connect_server(unbound, server)
+ log("debug", "Setting up net.server event handling for %s", unbound);
return server.watchfd(unbound, function ()
+ log("debug", "Processing queries for %s", unbound);
unbound:process()
end);
end