util.dependencies: Tone down lua-unbound dependency for now
authorKim Alvefur <zash@zash.se>
Sat, 27 Jun 2020 14:25:57 +0200
changeset 10978 3b9d533da8fe
parent 10977 39991e40d1dc
child 10979 f997e3e8bc23
util.dependencies: Tone down lua-unbound dependency for now At least until packages are available Wording from MattJ
net/adns.lua
util/dependencies.lua
--- a/net/adns.lua	Fri Jun 26 16:41:31 2020 +0100
+++ b/net/adns.lua	Sat Jun 27 14:25:57 2020 +0200
@@ -12,7 +12,8 @@
 
 local log = require "util.logger".init("adns");
 
-log("warn", "Old async DNS library used, lua-unbound missing?"); -- TODO write docs about luaunbound
+log("debug", "Using legacy DNS API (missing lua-unbound?)"); -- TODO write docs about luaunbound
+-- TODO Raise log level once packages are available
 
 local coroutine, pcall = coroutine, pcall;
 local setmetatable = setmetatable;
--- a/util/dependencies.lua	Fri Jun 26 16:41:31 2020 +0100
+++ b/util/dependencies.lua	Sat Jun 27 14:25:57 2020 +0200
@@ -100,10 +100,12 @@
 
 	local unbound, err = softreq"lunbound";
 	if not unbound then
+		--[[ TODO Re-enable once packages are available
 		missingdep("lua-unbound", {
 				{ "luarocks", "luarocks install luaunbound" };
 				{ "Source", "https://www.zash.se/luaunbound.html" };
 			}, "Old DNS resolver library will be used", err);
+		--]]
 	else
 		package.preload["net.adns"] = function ()
 			local ub = require "net.unbound";