From b4403aadddfe80d62290a7b8e98bff2738e834e2 Mon Sep 17 00:00:00 2001
From: Kim Alvefur <zash@zash.se>
Date: Tue, 5 Jan 2021 20:02:46 +0100
Subject: 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
---
 net/unbound.lua | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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
-- 
cgit v1.2.3