summaryrefslogtreecommitdiffstats
path: root/lualib/lua_cfg_transform.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lualib/lua_cfg_transform.lua')
-rw-r--r--lualib/lua_cfg_transform.lua16
1 files changed, 16 insertions, 0 deletions
diff --git a/lualib/lua_cfg_transform.lua b/lualib/lua_cfg_transform.lua
index 971b60171..af5bf5999 100644
--- a/lualib/lua_cfg_transform.lua
+++ b/lualib/lua_cfg_transform.lua
@@ -257,6 +257,22 @@ return function(cfg)
end
end
end
+
+ local actions_set = {}
+ for _,d in ipairs(actions_defs) do
+ actions_set[d] = true
+ end
+
+ -- Now check actions section for garbadge
+ actions_set['unknown_weight'] = true
+ actions_set['grow_factor'] = true
+ actions_set['subject'] = true
+
+ for k,v in pairs(cfg.actions) do
+ if not actions_set[k] then
+ logger.warnx('unknown element in actions section: %s', k)
+ end
+ end
end
if not cfg.group then