Diff

net/unbound.lua @ 11248:a1aecd8cf7ee

net.unbound: Log net.server interactions Noticed the potential need for this thanks to Ge0rG
author Kim Alvefur <zash@zash.se>
date Tue, 05 Jan 2021 19:53:40 +0100
parent 10968:23ae55cbbeaf
child 11249:137c44d2714a
line wrap: on
line diff
--- a/net/unbound.lua	Tue Jan 05 17:08:24 2021 +0100
+++ b/net/unbound.lua	Tue Jan 05 19:53:40 2021 +0100
@@ -45,7 +45,9 @@
 -- 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