# HG changeset patch # User Matthew Wild # Date 1458294661 0 # Node ID 26334f4a8eb90a6e424a55e6a7dfa65618d43ab0 # Parent 21bc4d7cddae2314f5e46b89c4e2f04e6bff952b mod_firewall: LOG uses session.log if available diff -r 21bc4d7cddae -r 26334f4a8eb9 mod_firewall/actions.lib.lua --- 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)