Commit a2416594 authored by Tien-Thinh Nguyen's avatar Tien-Thinh Nguyen

Remove unecessary logger amf_n2_task

parent a3f62359
...@@ -146,21 +146,21 @@ void amf_n2_task(void* args_p) { ...@@ -146,21 +146,21 @@ void amf_n2_task(void* args_p) {
amf_n2_inst->handle_itti_message(ref(*m)); amf_n2_inst->handle_itti_message(ref(*m));
} break; } break;
case UE_CONTEXT_RELEASE_COMMAND: { case UE_CONTEXT_RELEASE_COMMAND: {
Logger::task_amf_n2().info( Logger::amf_n2().info(
"Received UE_CONTEXT_RELEASE_COMMAND message, handling"); "Received UE_CONTEXT_RELEASE_COMMAND message, handling");
itti_ue_context_release_command* m = itti_ue_context_release_command* m =
dynamic_cast<itti_ue_context_release_command*>(msg); dynamic_cast<itti_ue_context_release_command*>(msg);
amf_n2_inst->handle_itti_message(ref(*m)); amf_n2_inst->handle_itti_message(ref(*m));
} break; } break;
case UE_CONTEXT_RELEASE_COMPLETE: { case UE_CONTEXT_RELEASE_COMPLETE: {
Logger::task_amf_n2().info( Logger::amf_n2().info(
"Received UE_CONTEXT_RELEASE_COMPLETE message, handling"); "Received UE_CONTEXT_RELEASE_COMPLETE message, handling");
itti_ue_context_release_complete* m = itti_ue_context_release_complete* m =
dynamic_cast<itti_ue_context_release_complete*>(msg); dynamic_cast<itti_ue_context_release_complete*>(msg);
amf_n2_inst->handle_itti_message(ref(*m)); amf_n2_inst->handle_itti_message(ref(*m));
} break; } break;
case PDU_SESSION_RESOURCE_RELEASE_COMMAND: { case PDU_SESSION_RESOURCE_RELEASE_COMMAND: {
Logger::task_amf_n2().info( Logger::amf_n2().info(
"Received PDU_SESSION_RESOURCE_RELEASE_COMMAND message, handling"); "Received PDU_SESSION_RESOURCE_RELEASE_COMMAND message, handling");
itti_pdu_session_resource_release_command* m = itti_pdu_session_resource_release_command* m =
dynamic_cast<itti_pdu_session_resource_release_command*>(msg); dynamic_cast<itti_pdu_session_resource_release_command*>(msg);
......
...@@ -66,19 +66,18 @@ void Logger::_init( ...@@ -66,19 +66,18 @@ void Logger::_init(
std::stringstream ss; std::stringstream ss;
ss << "[%Y-%m-%dT%H:%M:%S.%f] [" << app << "] [%n] [%l] %v"; ss << "[%Y-%m-%dT%H:%M:%S.%f] [" << app << "] [%n] [%l] %v";
m_async_cmd = new _Logger("asnyc_c", m_sinks, ss.str().c_str()); m_async_cmd = new _Logger("asnyc_c", m_sinks, ss.str().c_str());
m_amf_app = new _Logger("amf_app", m_sinks, ss.str().c_str()); m_amf_app = new _Logger("amf_app", m_sinks, ss.str().c_str());
m_config = new _Logger("configurations", m_sinks, ss.str().c_str()); m_config = new _Logger("configurations", m_sinks, ss.str().c_str());
m_system = new _Logger("system ", m_sinks, ss.str().c_str()); m_system = new _Logger("system ", m_sinks, ss.str().c_str());
m_sctp = new _Logger("sctp ", m_sinks, ss.str().c_str()); m_sctp = new _Logger("sctp ", m_sinks, ss.str().c_str());
m_nas_mm = new _Logger("nas_mm ", m_sinks, ss.str().c_str()); m_nas_mm = new _Logger("nas_mm ", m_sinks, ss.str().c_str());
m_ngap = new _Logger("ngap ", m_sinks, ss.str().c_str()); m_ngap = new _Logger("ngap ", m_sinks, ss.str().c_str());
m_itti = new _Logger("itti ", m_sinks, ss.str().c_str()); m_itti = new _Logger("itti ", m_sinks, ss.str().c_str());
m_amf_n2 = new _Logger("amf_n2 ", m_sinks, ss.str().c_str()); m_amf_n2 = new _Logger("amf_n2 ", m_sinks, ss.str().c_str());
m_amf_n1 = new _Logger("amf_n1 ", m_sinks, ss.str().c_str()); m_amf_n1 = new _Logger("amf_n1 ", m_sinks, ss.str().c_str());
m_amf_n11 = new _Logger("amf_n11", m_sinks, ss.str().c_str()); m_amf_n11 = new _Logger("amf_n11", m_sinks, ss.str().c_str());
m_amf_server = new _Logger("amf_server", m_sinks, ss.str().c_str()); m_amf_server = new _Logger("amf_server", m_sinks, ss.str().c_str());
m_task_amf_n2 = new _Logger("task_amf_n2", m_sinks, ss.str().c_str());
} }
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
......
...@@ -94,7 +94,6 @@ class Logger { ...@@ -94,7 +94,6 @@ class Logger {
static _Logger& amf_n1() { return *singleton().m_amf_n1; } static _Logger& amf_n1() { return *singleton().m_amf_n1; }
static _Logger& amf_n11() { return *singleton().m_amf_n11; } static _Logger& amf_n11() { return *singleton().m_amf_n11; }
static _Logger& amf_server() { return *singleton().m_amf_server; } static _Logger& amf_server() { return *singleton().m_amf_server; }
static _Logger& task_amf_n2() { return *singleton().m_task_amf_n2; }
private: private:
static Logger* m_singleton; static Logger* m_singleton;
...@@ -124,7 +123,6 @@ class Logger { ...@@ -124,7 +123,6 @@ class Logger {
_Logger* m_amf_n1; _Logger* m_amf_n1;
_Logger* m_amf_n11; _Logger* m_amf_n11;
_Logger* m_amf_server; _Logger* m_amf_server;
_Logger* m_task_amf_n2;
}; };
#endif #endif
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