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
c0a29766
Commit
c0a29766
authored
Jun 21, 2022
by
Tien Thinh NGUYEN
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add debug info
parent
2a295c1a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
1 deletion
+10
-1
src/common/logger.hpp
src/common/logger.hpp
+8
-1
src/udr_app/mysql_db.cpp
src/udr_app/mysql_db.cpp
+2
-0
No files found.
src/common/logger.hpp
View file @
c0a29766
...
...
@@ -97,7 +97,14 @@ class Logger {
}
Logger
()
{}
~
Logger
()
{}
~
Logger
()
{
if
(
m_udr_app
)
delete
m_udr_app
;
if
(
m_config
)
delete
m_config
;
if
(
m_system
)
delete
m_system
;
if
(
m_udr_server
)
delete
m_udr_server
;
if
(
m_udr_nrf
)
delete
m_udr_nrf
;
if
(
m_udr_mysql
)
delete
m_udr_mysql
;
}
void
_init
(
const
char
*
app
,
const
bool
log_stdout
,
const
bool
log_rot_file
);
...
...
src/udr_app/mysql_db.cpp
View file @
c0a29766
...
...
@@ -82,6 +82,8 @@ bool mysql_db::connect(uint32_t num_retries) {
i
++
;
// throw std::runtime_error("Cannot connect to MySQL DB");
}
else
{
Logger
::
udr_mysql
().
info
(
"Connected to MySQL DB: %s:"
,
mysql_error
(
&
mysql_connector
));
return
true
;
}
std
::
this_thread
::
sleep_for
(
std
::
chrono
::
milliseconds
(
100
));
...
...
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