lynxis lazus has submitted this change. ( 
https://gerrit.osmocom.org/c/libosmo-sigtran/+/42753?usp=email )

Change subject: tcap_as_loadshare: improve logging of lookup failures
......................................................................

tcap_as_loadshare: improve logging of lookup failures

Change-Id: I80878dfd080c705de28175260cb392186dafed6a
---
M src/tcap_as_loadshare.c
1 file changed, 3 insertions(+), 3 deletions(-)

Approvals:
  pespin: Looks good to me, approved
  Jenkins Builder: Verified




diff --git a/src/tcap_as_loadshare.c b/src/tcap_as_loadshare.c
index 1d6ebd9..79ab0c3 100644
--- a/src/tcap_as_loadshare.c
+++ b/src/tcap_as_loadshare.c
@@ -534,7 +534,7 @@
                        else {
                                /* couldn't find a suitable canditate for OTID 
*/
                                rate_ctr_inc2(as->ctrg, 
SS7_AS_CTR_TCAP_ASP_FAILED);
-                               LOGPAS(as, DLTCAP, LOGL_DEBUG, "Couldn't find a 
suitable canditate for otid %u\n", parsed.otid);
+                               LOGPAS(as, DLTCAP, LOGL_DEBUG, "Couldn't find a 
suitable canditate for TCAP Begin otid %u\n", parsed.otid);
                                rc = -ENOKEY;
                                goto out_free_sua;
                        }
@@ -551,7 +551,7 @@

                asp = tcap_trans_track_continue(as, &called_addr, &parsed.dtid, 
&calling_addr, &parsed.otid);
                if (!asp) {
-                       LOGPAS(as, DLTCAP, LOGL_INFO, "Couldn't find cached ASP 
for dtid %u/otid %u, using tcap route", parsed.dtid, parsed.otid);
+                       LOGPAS(as, DLTCAP, LOGL_INFO, "Couldn't find cached ASP 
for TCAP Continue, dtid %u/otid %u, using tcap route", parsed.dtid, 
parsed.otid);
                        asp = tcap_as_asp_find_by_tcap_id(as, &calling_addr, 
&called_addr, parsed.dtid);
                        if (asp)
                                tcap_trans_track_entry_create(as, asp, 
&called_addr, &parsed.dtid, &calling_addr, &parsed.otid);
@@ -568,7 +568,7 @@

                asp = tcap_trans_track_end(as, &called_addr, &parsed.dtid, 
&calling_addr, NULL);
                if (!asp) {
-                       LOGPAS(as, DLTCAP, LOGL_INFO, "Couldn't find cached ASP 
for dtid %u/otid %u, using tcap route", parsed.dtid, parsed.otid);
+                       LOGPAS(as, DLTCAP, LOGL_INFO, "Couldn't find cached ASP 
for TCAP End, dtid %u, using tcap route", parsed.dtid);
                        asp = tcap_as_asp_find_by_tcap_id(as, &calling_addr, 
&called_addr, parsed.dtid);
                }
                rc = asp ? 0 : -ENOKEY;

--
To view, visit https://gerrit.osmocom.org/c/libosmo-sigtran/+/42753?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings?usp=email

Gerrit-MessageType: merged
Gerrit-Project: libosmo-sigtran
Gerrit-Branch: master
Gerrit-Change-Id: I80878dfd080c705de28175260cb392186dafed6a
Gerrit-Change-Number: 42753
Gerrit-PatchSet: 2
Gerrit-Owner: lynxis lazus <[email protected]>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: lynxis lazus <[email protected]>
Gerrit-Reviewer: pespin <[email protected]>
Gerrit-CC: laforge <[email protected]>

Reply via email to