Commit 23c90c83 authored by chen2022's avatar chen2022

注释udm_app.cpp文件的一些日志信息

parent 20968477
......@@ -54,7 +54,7 @@ void udm_app_task(void*){
}
break;
case SBI_UPDATE_NF_INSTANCE_REQUEST:
Logger::udm_app().debug("send update request");
// Logger::udm_app().debug("send update request");
udm_app_inst->update_nf_instance(std::static_pointer_cast<itti_sbi_update_nf_instance_request>(shared_msg));
break;
case TIME_OUT:
......@@ -149,7 +149,7 @@ void udm_app::trigger_nf_registration_request(){
}
void udm_app::timer_nrf_heartbeat_timeout(timer_id_t timer_id, uint64_t arg2_user){
Logger::udm_app().debug("Send ITTI msg to N11 task to trigger NRF Heartbeat");
// Logger::udm_app().debug("Send ITTI msg to N11 task to trigger NRF Heartbeat");
std::shared_ptr<itti_sbi_update_nf_instance_request> itti_msg =
std::make_shared<itti_sbi_update_nf_instance_request>(
TASK_UDM_APP, TASK_UDM_APP);
......@@ -167,9 +167,9 @@ void udm_app::timer_nrf_heartbeat_timeout(timer_id_t timer_id, uint64_t arg2_use
"Could not send ITTI message %s to task TASK_UDM_APP",
itti_msg->get_msg_name());
} else {
Logger::udm_app().debug(
"Set a timer to the next Heart-beat (%d)",
nf_instance_profile.get_nf_heartBeat_timer());
// Logger::udm_app().debug(
// "Set a timer to the next Heart-beat (%d)",
// nf_instance_profile.get_nf_heartBeat_timer());
timer_nrf_heartbeat = itti_inst->timer_setup(
nf_instance_profile.get_nf_heartBeat_timer(), 0, TASK_UDM_APP,
TASK_UDM_APP_TIMEOUT_NRF_HEARTBEAT,
......@@ -284,8 +284,8 @@ void udm_app::handle_itti_msg(itti_sbi_register_nf_instance_response& r) {
}
void udm_app::update_nf_instance(
std::shared_ptr<itti_sbi_update_nf_instance_request> msg) {
Logger::udm_app().debug(
"Send NF Update to NRF (HTTP version %d)", msg->http_version);
// Logger::udm_app().debug(
// "Send NF Update to NRF (HTTP version %d)", msg->http_version);
nlohmann::json json_data = nlohmann::json::array();
for (auto i : msg->patch_items) {
......@@ -294,7 +294,7 @@ void udm_app::update_nf_instance(
json_data.push_back(item);
}
std::string body = json_data.dump();
Logger::udm_app().debug("Send NF Update to NRF, Msg body %s", body.c_str());
// Logger::udm_app().debug("Send NF Update to NRF, Msg body %s", body.c_str());
std::string url =
std::string(inet_ntoa(*((struct in_addr*) &udm_cfg.nnrf.addr4))) +
......@@ -302,7 +302,7 @@ void udm_app::update_nf_instance(
udm_cfg.nnrf.api_version + "/nf-instances/" +
msg->udm_instance_id;
Logger::udm_app().debug("Send NF Update to NRF, NRF URL %s", url.c_str());
// Logger::udm_app().debug("Send NF Update to NRF, NRF URL %s", url.c_str());
curl_global_init(CURL_GLOBAL_ALL);
CURL* curl = curl = curl_easy_init();
......@@ -338,8 +338,8 @@ void udm_app::update_nf_instance(
res = curl_easy_perform(curl);
curl_easy_getinfo(curl, CURLINFO_RESPONSE_CODE, &httpCode);
Logger::udm_app().debug(
"NF Update, response from NRF, HTTP Code: %d", httpCode);
// Logger::udm_app().debug(
// "NF Update, response from NRF, HTTP Code: %d", httpCode);
if (httpCode==200||httpCode == 204) {
Logger::udm_app().debug("NF Update, got successful response from NRF");
......@@ -360,7 +360,7 @@ void udm_app::update_nf_instance(
itti_msg->get_msg_name());
}*/
} else {
Logger::udm_app().warn("NF Update, could not get response from NRF");
// Logger::udm_app().warn("NF Update, could not get response from NRF");
}
curl_slist_free_all(headers);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment