Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-UDR
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-UDR
Commits
c9a1ed26
Commit
c9a1ed26
authored
Mar 17, 2022
by
Tien-Thinh Nguyen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add debugging log
parent
3a43e767
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
src/udr_app/udr_app.cpp
src/udr_app/udr_app.cpp
+4
-4
No files found.
src/udr_app/udr_app.cpp
View file @
c9a1ed26
...
...
@@ -92,7 +92,6 @@ void udr_app::handle_query_am_data(const std::string &ue_id,
MYSQL_RES
*
res
=
nullptr
;
MYSQL_ROW
row
=
{};
MYSQL_FIELD
*
field
=
nullptr
;
nlohmann
::
json
j
=
{};
response_data
=
{};
oai
::
udr
::
model
::
AccessAndMobilitySubscriptionData
subscription_data
=
{};
...
...
@@ -103,6 +102,8 @@ void udr_app::handle_query_am_data(const std::string &ue_id,
"select * from AccessAndMobilitySubscriptionData WHERE ueid='"
+
ue_id
+
"' and servingPlmnid='"
+
serving_plmn_id
+
"'"
;
Logger
::
udr_server
().
debug
(
"SQL Query: %s"
,
query
.
c_str
());
if
(
mysql_real_query
(
&
mysql
,
query
.
c_str
(),
(
unsigned
long
)
query
.
size
()))
{
Logger
::
udr_server
().
error
(
"mysql_real_query failure!"
);
code
=
HTTP_STATUS_CODE_500_INTERNAL_SERVER_ERROR
;
...
...
@@ -318,13 +319,12 @@ void udr_app::handle_query_am_data(const std::string &ue_id,
}
}
to_json
(
j
,
subscription_data
);
response_data
=
j
;
to_json
(
response_data
,
subscription_data
);
code
=
HTTP_STATUS_CODE_200_OK
;
Logger
::
udr_server
().
debug
(
"AccessAndMobilitySubscriptionData GET (JSON):
\n
%s"
,
j
.
dump
().
c_str
());
response_data
.
dump
().
c_str
());
}
else
{
Logger
::
udr_server
().
error
(
"No data available for AccessAndMobilitySubscriptionData!"
);
...
...
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