laforge has submitted this change. ( 
https://gerrit.osmocom.org/c/osmo-bts/+/27369 )

Change subject: rsl: Conditionally decrease log level if cause is normal event
......................................................................

rsl: Conditionally decrease log level if cause is normal event

This avoid a NOTICE log line like the following when gsm_lchan_release()
is called.
"""
rsl.c:2484 (bts=0,trx=0,ts=2,ss=0) Sending RTP delete indication: cause = 
Normal event, unspecified
"""
Change-Id: I0ce78c52644983220f5810bc5c661b07afd9e543
---
M src/common/rsl.c
1 file changed, 3 insertions(+), 1 deletion(-)

Approvals:
  Jenkins Builder: Verified
  fixeria: Looks good to me, approved
  laforge: Looks good to me, approved



diff --git a/src/common/rsl.c b/src/common/rsl.c
index 4c5fb9f..7d6621a 100644
--- a/src/common/rsl.c
+++ b/src/common/rsl.c
@@ -2480,7 +2480,9 @@
 {
        struct msgb *nmsg;

-       LOGPLCHAN(lchan, DRSL, LOGL_NOTICE, "Sending RTP delete indication: 
cause = %s\n",
+       LOGPLCHAN(lchan, DRSL,
+                 (cause == RSL_ERR_NORMAL_UNSPEC) ? LOGL_INFO : LOGL_NOTICE,
+                 "Sending RTP delete indication: cause = %s\n",
                  rsl_err_name(cause));

        nmsg = rsl_msgb_alloc(sizeof(struct abis_rsl_dchan_hdr));

--
To view, visit https://gerrit.osmocom.org/c/osmo-bts/+/27369
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-bts
Gerrit-Branch: master
Gerrit-Change-Id: I0ce78c52644983220f5810bc5c661b07afd9e543
Gerrit-Change-Number: 27369
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <[email protected]>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <[email protected]>
Gerrit-Reviewer: laforge <[email protected]>
Gerrit-MessageType: merged

Reply via email to