fixeria has submitted this change. ( 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(-)
Approvals: laforge: Looks good to me, approved Jenkins Builder: Verified pespin: Looks good to me, but someone else must approve
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: