]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
lua kr_request_t::selected:tostring(): adjust style
authorVladimír Čunát <vladimir.cunat@nic.cz>
Wed, 4 Aug 2021 18:59:59 +0000 (20:59 +0200)
committerTomas Krizek <tomas.krizek@nic.cz>
Tue, 10 Aug 2021 18:16:58 +0000 (20:16 +0200)
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.

daemon/lua/kres.lua

index 5507561958b085152d0153190834b6f0f0a6ca31..0e31745e8a52e1f6d4716d0634cdff3784831754 100644 (file)
@@ -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, '')