diff options
| author | luwenpeng <[email protected]> | 2024-10-25 13:53:55 +0800 |
|---|---|---|
| committer | luwenpeng <[email protected]> | 2024-10-25 14:13:27 +0800 |
| commit | ccf1186058ca4a10cc69eb22cbe72f965522c5a6 (patch) | |
| tree | 63b8575b37c96334ec90fcec142fba402c1f698a /plugin | |
| parent | 2ead67ef4fea41d68e7c322b062c7e51ed9d6232 (diff) | |
bugfix: traffic mirror debug log
Diffstat (limited to 'plugin')
| -rw-r--r-- | plugin/business/traffic-mirror/src/entry.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
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); |
