]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
policy.rpz: increase log severity
authorVladimír Čunát <vladimir.cunat@nic.cz>
Mon, 18 Oct 2021 12:29:13 +0000 (14:29 +0200)
committerTomas Krizek <tomas.krizek@nic.cz>
Wed, 20 Oct 2021 15:01:21 +0000 (17:01 +0200)
Issues affecting functionality of the RPZ should NOT be hidden
by default.

modules/policy/policy.lua

index dd68102add50a8e3ddabab48fffc8ce8a31de3e7..1a33a180326e78796108ca9460cb9ec7a3e16d4c 100644 (file)
@@ -424,7 +424,8 @@ local function rpz_parse(action, path)
        while true do
                ok, errstr = parser:parse()
                if errstr then
-                       log_info(ffi.C.LOG_GRP_POLICY, 'RPZ %s:%d: %s', path, tonumber(parser.line_counter), errstr)
+                       log_warn(ffi.C.LOG_GRP_POLICY, 'RPZ %s:%d: %s',
+                               path, tonumber(parser.line_counter), errstr)
                end
                if not ok then break end
 
@@ -451,7 +452,8 @@ local function rpz_parse(action, path)
                        if action_map[rdata] then
                                rules[name] = action_map[rdata]
                        else
-                               log_info(ffi.C.LOG_GRP_POLICY, 'RPZ %s:%d: CNAME with custom target in RPZ is not supported yet (ignored)',
+                               log_warn(ffi.C.LOG_GRP_POLICY,
+                                       'RPZ %s:%d: CNAME with custom target in RPZ is not supported yet (ignored)',
                                        path, tonumber(parser.line_counter))
                        end
                else