From 19487c680c5220a6ef6beaa95c89ac0a8fa96020 Mon Sep 17 00:00:00 2001 From: Pedro Alvarez Date: Mon, 28 Feb 2022 15:08:05 +0000 Subject: [PATCH] gnb,config: Added logging about pdcp and rlc configs. --- srsgnb/src/stack/rrc/rrc_nr.cc | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/srsgnb/src/stack/rrc/rrc_nr.cc b/srsgnb/src/stack/rrc/rrc_nr.cc index 1954dafa4..5ff6a49a0 100644 --- a/srsgnb/src/stack/rrc/rrc_nr.cc +++ b/srsgnb/src/stack/rrc/rrc_nr.cc @@ -94,6 +94,17 @@ int rrc_nr::init(const rrc_nr_cfg_t& cfg_, config_mac(); logger.info("Number of 5QI %d", cfg.five_qi_cfg.size()); + for (const std::pair& five_qi_cfg : cfg.five_qi_cfg) { + logger.info("5QI configuration. 5QI=%d", five_qi_cfg.first); + if (logger.info.enabled()) { + asn1::json_writer js{}; + five_qi_cfg.second.pdcp_cfg.to_json(js); + logger.info("PDCP NR configuration: %s", js.to_string().c_str()); + js = {}; + five_qi_cfg.second.rlc_cfg.to_json(js); + logger.info("RLC NR configuration: %s", js.to_string().c_str()); + } + } logger.info("NIA preference list: NIA%d, NIA%d, NIA%d", cfg.nia_preference_list[0], cfg.nia_preference_list[1],