Commit c0a29766 authored by Tien Thinh NGUYEN's avatar Tien Thinh NGUYEN

add debug info

parent 2a295c1a
......@@ -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);
......
......@@ -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));
......
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