changeset 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 c414a7e884b3
children 866167118d23
files mod_firewall/actions.lib.lua
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
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