From ccf1186058ca4a10cc69eb22cbe72f965522c5a6 Mon Sep 17 00:00:00 2001 From: luwenpeng Date: Fri, 25 Oct 2024 13:53:55 +0800 Subject: bugfix: traffic mirror debug log --- plugin/business/traffic-mirror/src/entry.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'plugin') diff --git a/plugin/business/traffic-mirror/src/entry.cpp b/plugin/business/traffic-mirror/src/entry.cpp index cf87ce8..65a65d8 100644 --- a/plugin/business/traffic-mirror/src/entry.cpp +++ b/plugin/business/traffic-mirror/src/entry.cpp @@ -160,7 +160,7 @@ void policy_table_ex_data_new_cb(const char *table_name, const char *key, const item = cJSON_GetObjectItem(subobj, "mirroring_profile"); if (unlikely(!item || !cJSON_IsString(item))) { - TFE_LOG_DEBUG(instance->logger, "traffic_mirroring->mirroring_profile not existed, user default vlan id :%d.", instance->default_vlan_id); + TFE_LOG_DEBUG(instance->logger, "traffic mirror policy, key %s: enable = %d, profile not existed, user default vlan id :%d.", key, ex_data->enable, instance->default_vlan_id); ex_data->is_profile_set = 0; uuid_clear(ex_data->profile_uuid); } @@ -168,11 +168,9 @@ void policy_table_ex_data_new_cb(const char *table_name, const char *key, const { ex_data->is_profile_set = 1; uuid_parse(item->valuestring, ex_data->profile_uuid); + TFE_LOG_DEBUG(instance->logger, "traffic mirror policy, key %s: enable = %d, profile = %s", key, ex_data->enable, item->valuestring); } - TFE_LOG_DEBUG(instance->logger, "traffic mirror policy, key %s: enable = %d, profile = %s", - key, ex_data->enable, item->valuestring); - success: cJSON_Delete(json); free(str_json); -- cgit v1.2.3