summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2017-10-25 23:59:13 +0200
committerHarald Welte <laforge@gnumonks.org>2017-10-26 00:06:40 +0200
commit6111ab5bacffd3acde4c3ed02ce0b8866177552b (patch)
tree0cb7613475d7ae1131c857f45e94a0aa42f531d7
parentf8ac21bf71548649209ed2749bf6e7317bb15c62 (diff)
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
-rw-r--r--openbsc/tests/nanobts_omlattr/nanobts_omlattr_test.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/openbsc/tests/nanobts_omlattr/nanobts_omlattr_test.c b/openbsc/tests/nanobts_omlattr/nanobts_omlattr_test.c
index fc358f5cf..5c6e519c2 100644
--- a/openbsc/tests/nanobts_omlattr/nanobts_omlattr_test.c
+++ b/openbsc/tests/nanobts_omlattr/nanobts_omlattr_test.c
@@ -192,6 +192,9 @@ int main(int argc, char **argv)
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) */