mirror of
https://github.com/potats0/lua-resty-coraza.git
synced 2025-06-28 17:41:00 +03:00
修改代码格式
This commit is contained in:
parent
57f31a904a
commit
08af5ab3f3
@ -283,7 +283,7 @@ function _M.process_request_body(transaction)
|
|||||||
nlog(err_fmt("Transaction %s failed to invoke coraza_process_request_body",
|
nlog(err_fmt("Transaction %s failed to invoke coraza_process_request_body",
|
||||||
ngx_ctx.request_id))
|
ngx_ctx.request_id))
|
||||||
else
|
else
|
||||||
nlog(debug_fmt("Transaction %s uccess to invoke coraza_process_request_body",
|
nlog(debug_fmt("Transaction %s success to invoke coraza_process_request_body",
|
||||||
ngx_ctx.request_id))
|
ngx_ctx.request_id))
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@ -333,7 +333,7 @@ function _M.process_response_body(transaction)
|
|||||||
nlog(err_fmt("Transaction %s failed to invoke coraza_process_response_body",
|
nlog(err_fmt("Transaction %s failed to invoke coraza_process_response_body",
|
||||||
ngx_ctx.request_id))
|
ngx_ctx.request_id))
|
||||||
else
|
else
|
||||||
nlog(debug_fmt("Transaction %s uccess to invoke coraza_process_response_body",
|
nlog(debug_fmt("Transaction %s success to invoke coraza_process_response_body",
|
||||||
ngx_ctx.request_id))
|
ngx_ctx.request_id))
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@ -343,13 +343,14 @@ function _M.get_matched_logmsg(transaction)
|
|||||||
nlog(debug_fmt("Transaction %s uccess to invoke coraza_get_matched_logmsg",
|
nlog(debug_fmt("Transaction %s uccess to invoke coraza_get_matched_logmsg",
|
||||||
ngx_ctx.request_id))
|
ngx_ctx.request_id))
|
||||||
local res = ffi.string(c_str)
|
local res = ffi.string(c_str)
|
||||||
|
nlog(debug_fmt("logmsg is %s", res))
|
||||||
coraza.coraza_free_matched_logmsg(c_str)
|
coraza.coraza_free_matched_logmsg(c_str)
|
||||||
return res
|
return res
|
||||||
end
|
end
|
||||||
|
|
||||||
function _M.process_logging(transaction)
|
function _M.process_logging(transaction)
|
||||||
coraza.coraza_process_logging(transaction)
|
coraza.coraza_process_logging(transaction)
|
||||||
nlog(debug_fmt("Transaction %s uccess to invoke coraza_process_logging",
|
nlog(debug_fmt("Transaction %s success to invoke coraza_process_logging",
|
||||||
ngx_ctx.request_id))
|
ngx_ctx.request_id))
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user