[PATCH] openbsc[master]: nanobts_omlattra_test: Initialize logging before executing t...

Harald Welte gerrit-no-reply at lists.osmocom.org
Wed Oct 25 22:06:58 UTC 2017


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

nanobts_omlattra_test: Initialize logging before executing tests

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

Port of osmo-bsc Change-Id Ic01e9bfb63d7b6def9432103e744c23c90f0f6b9

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


  git pull ssh://gerrit.osmocom.org:29418/openbsc refs/changes/19/4419/1

diff --git a/openbsc/tests/nanobts_omlattr/nanobts_omlattr_test.c b/openbsc/tests/nanobts_omlattr/nanobts_omlattr_test.c
index fc358f5..5c6e519 100644
--- a/openbsc/tests/nanobts_omlattr/nanobts_omlattr_test.c
+++ b/openbsc/tests/nanobts_omlattr/nanobts_omlattr_test.c
@@ -192,6 +192,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/4419
To unsubscribe, visit https://gerrit.osmocom.org/settings

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


More information about the gerrit-log mailing list