From: Vladimír Čunát Date: Wed, 4 Aug 2021 18:59:59 +0000 (+0200) Subject: lua kr_request_t::selected:tostring(): adjust style X-Git-Tag: v5.4.1~3^2~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f62947a4dab485c38cf3c78475d27662e0baeb79;p=thirdparty%2Fknot-resolver.git lua kr_request_t::selected:tostring(): adjust style The result gets logged as a single multi-line message, so let's not repeat any prefix on (some of) those in-the-middle lines. --- diff --git a/daemon/lua/kres.lua b/daemon/lua/kres.lua index 550756195..0e31745e8 100644 --- a/daemon/lua/kres.lua +++ b/daemon/lua/kres.lua @@ -797,15 +797,15 @@ ffi.metatype( kr_request_t, { assert(ffi.istype(kr_request_t, req)) local buf = {} if #req.answ_selected ~= 0 then - table.insert(buf, string.format('[%05d.00][dbg ] selected rrsets from answer sections:\n', req.uid)) + table.insert(buf, ';; selected from ANSWER sections:\n') table.insert(buf, tostring(req.answ_selected)) end if #req.auth_selected ~= 0 then - table.insert(buf, string.format('[%05d.00][dbg ] selected rrsets from authority sections:\n', req.uid)) + table.insert(buf, ';; selected from AUTHORITY sections:\n') table.insert(buf, tostring(req.auth_selected)) end if #req.add_selected ~= 0 then - table.insert(buf, string.format('[%05d.00][dbg ] selected rrsets from additional sections:\n', req.uid)) + table.insert(buf, ';; selected from ADDITIONAL sections:\n') table.insert(buf, tostring(req.add_selected)) end return table.concat(buf, '')