🦄 refactor(tsg_scan_string): 输出字符串扫描命中结果至本地日志,debug级别

This commit is contained in:
yangwei
2023-04-17 19:54:13 +08:00
parent 36d5c3061e
commit 1b049f42b8

View File

@@ -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);
}