diff options
| -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); |
