bugfix: traffic mirror debug log
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user