From 1b049f42b83992f8dd30876e1d044ebe46ed33fb Mon Sep 17 00:00:00 2001 From: yangwei Date: Mon, 17 Apr 2023 19:54:13 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=A6=84=20refactor(tsg=5Fscan=5Fstring):?= =?UTF-8?q?=20=E8=BE=93=E5=87=BA=E5=AD=97=E7=AC=A6=E4=B8=B2=E6=89=AB?= =?UTF-8?q?=E6=8F=8F=E5=91=BD=E4=B8=AD=E7=BB=93=E6=9E=9C=E8=87=B3=E6=9C=AC?= =?UTF-8?q?=E5=9C=B0=E6=97=A5=E5=BF=97=EF=BC=8Cdebug=E7=BA=A7=E5=88=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/tsg_rule.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/tsg_rule.cpp b/src/tsg_rule.cpp index 3966f53..fcef971 100644 --- a/src/tsg_rule.cpp +++ b/src/tsg_rule.cpp @@ -2265,6 +2265,16 @@ size_t tsg_scan_string(const struct streaminfo *a_stream, struct maat *feather, int is_hited=maat_scan_string(feather, g_tsg_maat_rt_para.scan_tb[idx].id, s_data, s_data_len, matched_rules, MAX_RESULT_NUM, &n_matched_rules, s_mid); if(is_hited==MAAT_SCAN_HIT) { + MESA_handle_runtime_log(g_tsg_maat_rt_para.logger, + RLOG_LV_DEBUG, + "SCAN_STRING", + "Hit: %s len: %lu scan ret: %d table_name: %s addr: %s, mid: %p", + s_data, + s_data_len, + is_hited, + g_tsg_maat_rt_para.scan_tb[idx].name, + PRINTADDR(a_stream, g_tsg_maat_rt_para.level), + s_mid); return matche_rules_convert(feather, matched_rules, n_matched_rules, results, n_results); }