[PATCH] osmo-bsc[master]: nanobts_omlattra_test: Initialize logging before executing t...

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/.

Harald Welte gerrit-no-reply at lists.osmocom.org
Tue Oct 24 16:23:19 UTC 2017


Review at  https://gerrit.osmocom.org/4400

nanobts_omlattra_test: Initialize logging before executing tests

... the library code we call could want to log something, after all.

Change-Id: Ic01e9bfb63d7b6def9432103e744c23c90f0f6b9
---
M tests/nanobts_omlattr/nanobts_omlattr_test.c
1 file changed, 3 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.osmocom.org:29418/osmo-bsc refs/changes/00/4400/1

diff --git a/tests/nanobts_omlattr/nanobts_omlattr_test.c b/tests/nanobts_omlattr/nanobts_omlattr_test.c
index 3c81e43..cdb37a3 100644
--- a/tests/nanobts_omlattr/nanobts_omlattr_test.c
+++ b/tests/nanobts_omlattr/nanobts_omlattr_test.c
@@ -191,6 +191,9 @@
 	struct gsm_network *net;
 	struct gsm_bts_trx *trx;
 
+	osmo_init_logging(&log_info);
+	log_set_log_level(osmo_stderr_target, LOGL_INFO);
+
 	ctx = talloc_named_const(NULL, 0, "ctx");
 
 	/* Allocate environmental structs (bts, net, trx) */

-- 
To view, visit https://gerrit.osmocom.org/4400
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ic01e9bfb63d7b6def9432103e744c23c90f0f6b9
Gerrit-PatchSet: 1
Gerrit-Project: osmo-bsc
Gerrit-Branch: master
Gerrit-Owner: Harald Welte <laforge at gnumonks.org>



More information about the gerrit-log mailing list