aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2018-12-11 14:17:46 +0100
committerPau Espin Pedrol <pespin@sysmocom.de>2018-12-11 16:13:21 +0100
commita3acb30077ad580ab76ee3273b7383e9295ca68a (patch)
tree889df3ddc21a588a14680e6268b74b034a1dffd5
parent95739cf8cbda28b51380c3120d1f30e02a2712fc (diff)
paging: Properly enclose logging imsi filter scope
Otherwise all logging is kept enabled after passing through those code paths. Change-Id: I06a977d97e6ffea02ec7402d48410c0e7cc6c155
-rw-r--r--src/osmo-bsc/paging.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/osmo-bsc/paging.c b/src/osmo-bsc/paging.c
index 03f940c..2c9d5cd 100644
--- a/src/osmo-bsc/paging.c
+++ b/src/osmo-bsc/paging.c
@@ -285,6 +285,8 @@ static void paging_T3113_expired(void *data)
/* destroy it now. Do not access req afterwards */
paging_remove_request(&req->bts->paging, req);
+
+ log_set_context(LOG_CTX_BSC_SUBSCR, NULL);
}
#define GSM_FRAME_DURATION_us 4615
@@ -440,6 +442,7 @@ void paging_request_stop(struct llist_head *bts_list,
continue;
_paging_request_stop(bts, bsub, NULL, NULL);
}
+ log_set_context(LOG_CTX_BSC_SUBSCR, NULL);
}