Change in libosmo-abis[master]: Log TRAU FSM at INFO not NOTICE

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

laforge gerrit-no-reply at lists.osmocom.org
Thu May 6 16:29:29 UTC 2021


laforge has submitted this change. ( https://gerrit.osmocom.org/c/libosmo-abis/+/24132 )

Change subject: Log TRAU FSM at INFO not NOTICE
......................................................................

Log TRAU FSM at INFO not NOTICE

During normal operations, osmo-mgw floods the log/vty at level NOTICE with:

 Received Event RX_BITS (trau_sync.c:525)

Change-Id: Ib4c5ac130e766906361c63090b30111970343075
---
M src/trau/trau_sync.c
M tests/trau_sync/trau_sync_test.c
2 files changed, 2 insertions(+), 1 deletion(-)

Approvals:
  Jenkins Builder: Verified
  pespin: Looks good to me, but someone else must approve
  laforge: Looks good to me, approved



diff --git a/src/trau/trau_sync.c b/src/trau/trau_sync.c
index 89c5558..dba9cd1 100644
--- a/src/trau/trau_sync.c
+++ b/src/trau/trau_sync.c
@@ -487,7 +487,7 @@
 	if (pat_id >= ARRAY_SIZE(sync_patterns))
 		return NULL;
 
-	fi = osmo_fsm_inst_alloc(&trau_sync_fsm, ctx, NULL, LOGL_NOTICE, name);
+	fi = osmo_fsm_inst_alloc(&trau_sync_fsm, ctx, NULL, LOGL_INFO, name);
 	if (!fi)
 		return NULL;
 	tss = talloc_zero(fi, struct trau_rx_sync_state);
diff --git a/tests/trau_sync/trau_sync_test.c b/tests/trau_sync/trau_sync_test.c
index 88b5c6d..4e41dd2 100644
--- a/tests/trau_sync/trau_sync_test.c
+++ b/tests/trau_sync/trau_sync_test.c
@@ -84,5 +84,6 @@
 	log_set_print_filename2(osmo_stderr_target, LOG_FILENAME_NONE);
 	log_set_print_category(osmo_stderr_target, 0);
 	log_set_print_category_hex(osmo_stderr_target, 0);
+	log_set_log_level(osmo_stderr_target, LOGL_INFO);
 	test_body();
 }

-- 
To view, visit https://gerrit.osmocom.org/c/libosmo-abis/+/24132
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: libosmo-abis
Gerrit-Branch: master
Gerrit-Change-Id: Ib4c5ac130e766906361c63090b30111970343075
Gerrit-Change-Number: 24132
Gerrit-PatchSet: 2
Gerrit-Owner: keith <keith at rhizomatica.org>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge at osmocom.org>
Gerrit-Reviewer: pespin <pespin at sysmocom.de>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210506/2ab91483/attachment.htm>


More information about the gerrit-log mailing list