Skip to content

Commit 72f565c

Browse files
committed
pdcp: warn of crypto re-ordering time out only when warn on drop is enabled
1 parent f10b741 commit 72f565c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

lib/pdcp/pdcp_entity_tx.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1141,7 +1141,12 @@ void pdcp_entity_tx::crypto_reordering_timeout()
11411141
st);
11421142
return;
11431143
}
1144-
logger.log_warning("Crypto reordering timer expired. timeout={} st={}", pdcp_tx_crypto_reordering_timeout_ms, st);
1144+
1145+
if (cfg.custom.warn_on_drop) {
1146+
logger.log_warning("Crypto reordering timer expired. timeout={} st={}", pdcp_tx_crypto_reordering_timeout_ms, st);
1147+
} else {
1148+
logger.log_debug("Crypto reordering timer expired. timeout={} st={}", pdcp_tx_crypto_reordering_timeout_ms, st);
1149+
}
11451150

11461151
// Advance the TX_TRANS_CRYPTO to TX_REORD_CRYPTO.
11471152
// Deliver all processed PDUs up until TX_REORD_CRYPTO.

0 commit comments

Comments
 (0)