Commit 852dd0a6 authored by Tien-Thinh Nguyen's avatar Tien-Thinh Nguyen

Fix issue for log type

parent 54c1eb25
......@@ -303,7 +303,7 @@ void amf_n1::handle_itti_message(itti_uplink_nas_data_ind& nas_data_ind) {
"Received mac32 (0x%x) from the message", mac32_recv);
if (mac32 == mac32_recv) {
isMatched = true;
Logger::amf_n1().error("Integrity matched");
Logger::amf_n1().debug("Integrity matched");
// nc.get()->security_ctx->ul_count.seq_num ++;
}
if (!isMatched) {
......
......@@ -596,12 +596,15 @@ void amf_n2::handle_itti_message(itti_ul_nas_transport& ul_nas_transport) {
"which's amf_ue_ngap_id (0x%x)",
amf_ue_ngap_id, unc.get()->amf_ue_ngap_id);
}
if (unc.get()->ng_ue_state != NGAP_UE_CONNECTED) {
Logger::amf_n2().error(
"Received NGAP UPLINK_NAS_TRANSPORT while UE in state != "
"NGAP_UE_CONNECTED");
// return;
}
/*
//TODO: check with a correct NGAP state
if (unc.get()->ng_ue_state != NGAP_UE_CONNECTED) {
Logger::amf_n2().error(
"Received NGAP UPLINK_NAS_TRANSPORT while UE in state != "
"NGAP_UE_CONNECTED");
// return;
}
*/
itti_uplink_nas_data_ind* itti_msg =
new itti_uplink_nas_data_ind(TASK_AMF_N2, TASK_AMF_N1);
itti_msg->is_nas_signalling_estab_req = false;
......
......@@ -155,7 +155,7 @@ void amf_n1::mysql_push_rand_sqn(
mysql_free_result(res);
} else {
if (mysql_field_count(db_desc->db_conn) == 0) {
Logger::amf_n1().error(
Logger::amf_n1().debug(
"[MySQL] %lld rows affected",
mysql_affected_rows(db_desc->db_conn));
} else { /* some error occurred */
......@@ -197,7 +197,7 @@ void amf_n1::mysql_increment_sqn(std::string imsi) {
mysql_free_result(res);
} else {
if (mysql_field_count(db_desc->db_conn) == 0) {
Logger::amf_n1().error(
Logger::amf_n1().debug(
"[MySQL] %lld rows affected",
mysql_affected_rows(db_desc->db_conn));
} else {
......
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