Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-UDM
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenXG
OpenXG-UDM
Commits
23c90c83
Commit
23c90c83
authored
May 27, 2022
by
chen2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
注释udm_app.cpp文件的一些日志信息
parent
20968477
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
src/udm_app/udm_app.cpp
src/udm_app/udm_app.cpp
+12
-12
No files found.
src/udm_app/udm_app.cpp
View file @
23c90c83
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment