changeset 6558:15a7749c7acb

mod_firewall: Remove unnecessary logging
author Matthew Wild <mwild1@gmail.com>
date Sun, 24 May 2026 20:07:30 +0100
parents 2d916ba3253c
children 228859ea4781
files mod_firewall/mod_firewall.lua
diffstat 1 files changed, 0 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/mod_firewall/mod_firewall.lua	Sun May 24 20:04:03 2026 +0100
+++ b/mod_firewall/mod_firewall.lua	Sun May 24 20:07:30 2026 +0100
@@ -718,7 +718,6 @@
 	local events_hooked = {};
 	for chain, chain_info in pairs(chain_functions) do
 		local handler_code = chain_info.code;
-		module:log("warn", "Hooking %s for %s", chain, base_name);
 		local new_handler, err = compile_handler(handler_code, "mod_firewall:"..base_name.."::"..chain, chain_info.rules);
 		if not new_handler then
 			module:log("error", "Compilation error for %s: %s", script, err);
@@ -729,14 +728,11 @@
 			if chain_definition and chain_definition.type == "event" then
 				local handler = new_handler(chain_definition.pass_return);
 				for _, event_name in ipairs(chain_definition) do
-					module:log("warn", "Hooking %s...", event_name);
 					events_hooked[event_name] = handler;
 					module:hook(event_name, handler, chain_definition.priority);
 				end
 			elseif chain:sub(1, 5) ~= "user/" then
 				module:log("warn", "Unknown chain %q", chain);
-			else
-				module:log("warn", "Sad");
 			end
 			local event_name, handler = "firewall/chains/"..chain, new_handler(false);
 			events_hooked[event_name] = handler;