diff options
| author | liuxueli <[email protected]> | 2023-02-28 11:17:45 +0800 |
|---|---|---|
| committer | liuxueli <[email protected]> | 2023-02-28 13:47:50 +0800 |
| commit | 814effd50e072b514f19ac8e222bf76854fb1a5f (patch) | |
| tree | 74a0c260e1a1f6b52f185698dd5fd5ee6465b955 /src/tsg_send_log.cpp | |
| parent | 37a5bec192ba46326e591bad0201d95bae2d5164 (diff) | |
TSG-13959: 支持从redis中读取是否开启Session Record的开关,开关可控制session record、transcation log、interim log
Diffstat (limited to 'src/tsg_send_log.cpp')
| -rw-r--r-- | src/tsg_send_log.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/tsg_send_log.cpp b/src/tsg_send_log.cpp index 8cec5f7..0414626 100644 --- a/src/tsg_send_log.cpp +++ b/src/tsg_send_log.cpp @@ -2083,6 +2083,11 @@ int send_log(struct tsg_log_instance_t *_instance, struct TLD_handle_t *_handle, int fs_id=0,ret=0,repeat_cnt=0; int policy_id[MAX_RESULT_NUM]={0}; + if(g_tsg_para.session_record_switch==0 && (p_result[0].service_id==2 || p_result[0].service_id==6 || p_result[0].service_id==7)) + { + return 0; + } + for(int i=0;i<p_result_num; i++) { if(is_multi_hit_same_policy(&(p_result[i]), policy_id, &repeat_cnt)) |
