diff mod_firewall/actions.lib.lua @ 3371:68842409f4e7

mod_firewall: Improve logging on chain return
author Matthew Wild <mwild1@gmail.com>
date Wed, 07 Nov 2018 12:38:03 +0000
parents 0fb95dc11bc8
children 78049e8b5a6b
line wrap: on
line diff
--- a/mod_firewall/actions.lib.lua	Tue Nov 06 20:05:09 2018 +0100
+++ b/mod_firewall/actions.lib.lua	Wed Nov 07 12:38:03 2018 +0000
@@ -198,10 +198,13 @@
 		log('debug', 'chain \"%%s\" returned %%s', %q, tostring(ret));
 		if ret ~= nil then
 			if ret == false then
+				log("debug", "Chain accepted stanza");
 				return pass_return;
 			end
+			log("debug", "Chain rejected stanza");
 			return ret;
 		end
+		log("debug", "Chain did not accept or reject stanza");
 	end]]):format("firewall/chains/"..name, name);
 end