From 692fa4b3a3bd2f5953b80e536cd694076118c5b2 Mon Sep 17 00:00:00 2001 From: liuxueli Date: Fri, 9 Jun 2023 18:44:50 +0800 Subject: [PATCH] =?UTF-8?q?TSG-15446:=20Close=E7=8A=B6=E6=80=81=E6=9C=AA?= =?UTF-8?q?=E6=9B=B4=E6=96=B0application=20metrics?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/tsg_entry.cpp | 3 ++- src/tsg_rule.cpp | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/tsg_entry.cpp b/src/tsg_entry.cpp index 26d6d87..56d4f8a 100644 --- a/src/tsg_entry.cpp +++ b/src/tsg_entry.cpp @@ -1109,7 +1109,8 @@ int session_calculate_packets_increment(const struct streaminfo *a_stream, struc int session_application_metrics_update(const struct streaminfo *a_stream, struct session_runtime_action_context *srt_action_context, int thread_seq) { - if(tsg_get_current_time_ms() - srt_action_context->last_update_metric_time < g_tsg_para.app_metric_update_interval_ms) + if(tsg_get_current_time_ms() - srt_action_context->last_update_metric_time < g_tsg_para.app_metric_update_interval_ms && + a_stream->opstate!=OP_STATE_CLOSE && a_stream->pktstate!=OP_STATE_CLOSE) { return 0; } diff --git a/src/tsg_rule.cpp b/src/tsg_rule.cpp index 73f0114..c7b352b 100644 --- a/src/tsg_rule.cpp +++ b/src/tsg_rule.cpp @@ -1928,7 +1928,7 @@ struct maat *init_maat_feather(const char* conffile, char* instance_name, char * get_data_center(effective_flag, effective_tag_key, g_tsg_maat_rt_para.data_center, sizeof(g_tsg_maat_rt_para.data_center)); } - int _log_level=LOG_LEVEL_FATAL; + int _log_level=LOG_LEVEL_INFO; MESA_load_profile_int_def(conffile, module,"LOG_LEVEL", &(_log_level), LOG_LEVEL_FATAL); char log_path[128]={0};