use warn when rpz parsing detects unsupported policy action
policy module uses print
statement when warning about unsupported policy actions. I think it would be better to use warn
. print
is likely only "visible" when kresd is running in foreground whereas warn
is logged to the default logging facility.
A possible fix:
rules[name] = action_map[name_action]
-- Warn when NYI
if #name > 1 and not action_map[name_action] then
- print(string.format('[ rpz ] %s:%d: unsupported policy action', path, tonumber(parser.line_counter)))
+ warn("[rpz] %s:%d: unsupported policy action", path, tonumber(parser.line_counter))
end
end
return rules
Source: https://gitlab.labs.nic.cz/knot/knot-resolver/blob/master/modules/policy/policy.lua#L453