feat: add process_logging

This commit is contained in:
potatso
2023-07-18 13:31:19 +08:00
parent 0ef7a2a9e3
commit 2e848479e8
3 changed files with 15 additions and 1 deletions

View File

@@ -327,4 +327,13 @@ function _M.process_response_body(transaction)
end
end
function _M.process_logging(transaction)
local ok, msg = pcall(coraza.coraza_process_logging, transaction)
if ok then
nlog(debug_fmt("success to invoke coraza_process_logging"))
else
nlog(debug_fmt("failed to invoke coraza_process_logging. msg: %s", msg))
end
end
return _M