From 6a6bffcf5cf7511f259cc114f9bdf4a478e03c6d Mon Sep 17 00:00:00 2001 From: Pedro Alvarez Date: Thu, 18 Feb 2021 22:16:47 +0000 Subject: [PATCH] Changed log of discarding SN due limit to info level --- lib/src/upper/pdcp_entity_lte.cc | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/lib/src/upper/pdcp_entity_lte.cc b/lib/src/upper/pdcp_entity_lte.cc index 2c15959e4..c238f66f8 100644 --- a/lib/src/upper/pdcp_entity_lte.cc +++ b/lib/src/upper/pdcp_entity_lte.cc @@ -571,12 +571,22 @@ bool pdcp_entity_lte::store_sdu(uint32_t sn, const unique_byte_buffer_t& sdu) int32_t diff = sn - fms_sn; if (diff > (int32_t)maximum_allocated_sns_window) { // This SN is too large to assign, it may cause HFN de-synchronization. - logger.debug("This SN is too large to assign. Discarding. SN=%d, FMS=%d, diff=%d", sn, fms_sn, diff); + logger.info("This SN is too large to assign. Discarding. SN=%d, FMS=%d, diff=%d, window=%d, queue_size=%d", + sn, + fms_sn, + diff, + maximum_allocated_sns_window, + undelivered_sdus_queue.size()); return false; } if (diff < 0 && diff > -((int32_t)maximum_allocated_sns_window)) { // This SN is too large to assign, it may cause HFN de-synchronization. - logger.debug("This SN is too large to assign. Discarding. SN=%d, FMS=%d, diff=%d", sn, fms_sn, diff); + logger.info("This SN is too large to assign. Discarding. SN=%d, FMS=%d, diff=%d, window=%d, queue_size=%d", + sn, + fms_sn, + diff, + maximum_allocated_sns_window, + undelivered_sdus_queue.size()); return false; } }