fixeria has uploaded this change for review. ( 
https://gerrit.osmocom.org/c/osmo-msc/+/36861?usp=email )


Change subject: SMS-over-GSUP: set log context in gsm411_gsup_rx()
......................................................................

SMS-over-GSUP: set log context in gsm411_gsup_rx()

Change-Id: I3414953d2aa7b075fcee1cf6e5e76c527ae7b507
---
M src/libmsc/gsm_04_11_gsup.c
1 file changed, 12 insertions(+), 6 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-msc refs/changes/61/36861/1

diff --git a/src/libmsc/gsm_04_11_gsup.c b/src/libmsc/gsm_04_11_gsup.c
index 1afdfab..328d047 100644
--- a/src/libmsc/gsm_04_11_gsup.c
+++ b/src/libmsc/gsm_04_11_gsup.c
@@ -133,9 +133,6 @@
        const char *msg_name;
        bool msg_is_err;

-       /* Associate logging messages with this subscriber */
-       log_set_context(LOG_CTX_VLR_SUBSCR, vsub);
-
        /* Determine the message type and name */
        msg_is_err = OSMO_GSUP_IS_MSGT_ERROR(gsup_msg->message_type);
        switch (gsup_msg->message_type) {
@@ -241,9 +238,6 @@
        bool sm_rp_mmts_ind;
        int rc;

-       /* Associate logging messages with this subscriber */
-       log_set_context(LOG_CTX_VLR_SUBSCR, vsub);
-
        LOGP(DLSMS, LOGL_DEBUG, "RX MT-forwardSM-Req\n");

        /**
@@ -310,6 +304,9 @@
                return -GMM_CAUSE_IMSI_UNKNOWN;
        }

+       /* Associate logging messages with this subscriber */
+       log_set_context(LOG_CTX_VLR_SUBSCR, vsub);
+
        switch (gsup_msg->message_type) {
        /* GSM 04.11 code implementing MO SMS */
        case OSMO_GSUP_MSGT_MO_FORWARD_SM_ERROR:

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

Gerrit-Project: osmo-msc
Gerrit-Branch: master
Gerrit-Change-Id: I3414953d2aa7b075fcee1cf6e5e76c527ae7b507
Gerrit-Change-Number: 36861
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <[email protected]>
Gerrit-MessageType: newchange

Reply via email to