Changeset

10974:3b9d533da8fe

util.dependencies: Tone down lua-unbound dependency for now At least until packages are available Wording from MattJ
author Kim Alvefur <zash@zash.se>
date Sat, 27 Jun 2020 14:25:57 +0200
parents 10973:39991e40d1dc
children 10975:f997e3e8bc23
files net/adns.lua util/dependencies.lua
diffstat 2 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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";