Diff

mod_firewall/actions.lib.lua @ 2129:26334f4a8eb9

mod_firewall: LOG uses session.log if available
author Matthew Wild <mwild1@gmail.com>
date Fri, 18 Mar 2016 09:51:01 +0000
parent 2125:edf5cf3c474b
child 2415:07d7036040ee
line wrap: on
line diff
--- a/mod_firewall/actions.lib.lua	Fri Mar 18 09:47:52 2016 +0000
+++ b/mod_firewall/actions.lib.lua	Fri Mar 18 09:51:01 2016 +0000
@@ -158,7 +158,7 @@
 function action_handlers.LOG(string)
 	local level = string:match("^%[(%a+)%]") or "info";
 	string = string:gsub("^%[%a+%] ?", "");
-	return meta(("log(%q, %q)"):format(level, string));
+	return meta(("(session.log or log)(%q, %q)"):format(level, string));
 end
 
 function action_handlers.RULEDEP(dep)