From 08af5ab3f3d9156716d42e833b495b13203a1543 Mon Sep 17 00:00:00 2001 From: potatso Date: Wed, 5 Jul 2023 10:04:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BB=A3=E7=A0=81=E6=A0=BC?= =?UTF-8?q?=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/resty/coraza/coraza.lua | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/resty/coraza/coraza.lua b/lib/resty/coraza/coraza.lua index ab307ec..f10b82f 100644 --- a/lib/resty/coraza/coraza.lua +++ b/lib/resty/coraza/coraza.lua @@ -283,7 +283,7 @@ function _M.process_request_body(transaction) nlog(err_fmt("Transaction %s failed to invoke coraza_process_request_body", ngx_ctx.request_id)) 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)) end end @@ -333,7 +333,7 @@ function _M.process_response_body(transaction) nlog(err_fmt("Transaction %s failed to invoke coraza_process_response_body", ngx_ctx.request_id)) 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)) end end @@ -343,13 +343,14 @@ function _M.get_matched_logmsg(transaction) nlog(debug_fmt("Transaction %s uccess to invoke coraza_get_matched_logmsg", ngx_ctx.request_id)) local res = ffi.string(c_str) + nlog(debug_fmt("logmsg is %s", res)) coraza.coraza_free_matched_logmsg(c_str) return res end function _M.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)) end