summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2013-12-29 20:30:02 +0100
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2013-12-29 20:30:02 +0100
commit095bd36627a5d96a372b4924d0c0cbbc2fa98359 (patch)
treef61d2080401487dc1c94ec39fd24a4877f8086f6
parent249b3f38c5fe11c402b790b8821318dcfb8813e1 (diff)
smpp: In case we know the receiver set the context for logging
-rw-r--r--openbsc/src/libmsc/smpp_openbsc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/openbsc/src/libmsc/smpp_openbsc.c b/openbsc/src/libmsc/smpp_openbsc.c
index 9d2183af9..e3093772f 100644
--- a/openbsc/src/libmsc/smpp_openbsc.c
+++ b/openbsc/src/libmsc/smpp_openbsc.c
@@ -66,6 +66,8 @@ static struct gsm_subscriber *subscr_by_dst(struct gsm_network *net,
break;
}
+ /* tag the context in case we know it */
+ log_set_context(BSC_CTX_SUBSCR, subscr);
return subscr;
}