From 8f6eeb4a66c5e0c3cca6608a084ed11cdea42332 Mon Sep 17 00:00:00 2001 From: Neels Hofmeyr Date: Sun, 9 Dec 2018 17:08:12 +0100 Subject: set gscon FSM instances' log level to DEBUG Currently, we see all subscribers' FSM transitions on NOTICE level even though the code uses LOGPFSML(LOGL_DEBUG), because LOGPFSML() uses the max loglevel of the passed level and the FSM instance's level. Too noisy! By default, start out all gscon FSM instances on DEBUG level, so it is possible to silence the osmo-bsc log. Individual instances can still be lifted (I presume using the CTRL interface?). Change-Id: Ie021483e93ab174abac51357bcca8895756566c4 --- src/osmo-bsc/bsc_subscr_conn_fsm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/osmo-bsc') diff --git a/src/osmo-bsc/bsc_subscr_conn_fsm.c b/src/osmo-bsc/bsc_subscr_conn_fsm.c index 074c238df..fac0bc0b7 100644 --- a/src/osmo-bsc/bsc_subscr_conn_fsm.c +++ b/src/osmo-bsc/bsc_subscr_conn_fsm.c @@ -877,7 +877,7 @@ struct gsm_subscriber_connection *bsc_subscr_con_allocate(struct gsm_network *ne /* don't allocate from 'conn' context, as gscon_cleanup() will call talloc_free(conn) before * libosmocore will call talloc_free(conn->fi), i.e. avoid use-after-free during cleanup */ - conn->fi = osmo_fsm_inst_alloc(&gscon_fsm, net, conn, LOGL_NOTICE, NULL); + conn->fi = osmo_fsm_inst_alloc(&gscon_fsm, net, conn, LOGL_DEBUG, NULL); if (!conn->fi) { talloc_free(conn); return NULL; -- cgit v1.2.3