Changeset

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
parents 2128:21bc4d7cddae
children 2130:9239893a2400
files mod_firewall/actions.lib.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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)