Changeset

11249:137c44d2714a

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
author Kim Alvefur <zash@zash.se>
date Tue, 05 Jan 2021 20:02:46 +0100
parents 11248:a1aecd8cf7ee
children 11250:d1351683dfe5
files net/unbound.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/net/unbound.lua	Tue Jan 05 19:53:40 2021 +0100
+++ b/net/unbound.lua	Tue Jan 05 20:02:46 2021 +0100
@@ -123,7 +123,7 @@
 	if ret then
 		waiting_queries[ret] = callback;
 	else
-		log("warn", err);
+		log("warn", "Resolver error: %s", err);
 	end
 	return ret, err;
 end