Comparison

net/unbound.lua @ 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
parent 11248:a1aecd8cf7ee
child 11250:d1351683dfe5
comparison
equal deleted inserted replaced
11248:a1aecd8cf7ee 11249:137c44d2714a
121 local err; 121 local err;
122 ret, err = unbound:resolve_async(callback_wrapper, qname, ntype, nclass); 122 ret, err = unbound:resolve_async(callback_wrapper, qname, ntype, nclass);
123 if ret then 123 if ret then
124 waiting_queries[ret] = callback; 124 waiting_queries[ret] = callback;
125 else 125 else
126 log("warn", err); 126 log("warn", "Resolver error: %s", err);
127 end 127 end
128 return ret, err; 128 return ret, err;
129 end 129 end
130 130
131 local function lookup_sync(qname, qtype, qclass) 131 local function lookup_sync(qname, qtype, qclass)