aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorPhilipp Maier <pmaier@sysmocom.de>2020-03-25 12:23:52 +0100
committerlaforge <laforge@osmocom.org>2020-05-13 16:41:55 +0000
commitde0e558baf7016ce874299b22a525cf06524279a (patch)
tree15eb32b19f82fd7391f585bedebf98b5665d8a74 /tests
parent322456ed474a733094c9f3e240295b469023ad14 (diff)
gprs_debug: Use only LOGL_NOTICE as default loglevel
The default loglevels of some log categories are configured to LOGL_INFO. This is still to verbose, lets use LOGL_NOTICE here. Change-Id: Ibb1cd1a94fb4fdd0147e073f8c1c82562c2c14ef Related: OS#2577
Diffstat (limited to 'tests')
-rw-r--r--tests/alloc/AllocTest.cpp1
-rw-r--r--tests/types/TypesTest.cpp3
2 files changed, 4 insertions, 0 deletions
diff --git a/tests/alloc/AllocTest.cpp b/tests/alloc/AllocTest.cpp
index fec2c31f..8ebf1594 100644
--- a/tests/alloc/AllocTest.cpp
+++ b/tests/alloc/AllocTest.cpp
@@ -809,6 +809,7 @@ int main(int argc, char **argv)
osmo_init_logging2(tall_pcu_ctx, &gprs_log_info);
log_set_use_color(osmo_stderr_target, 0);
log_set_print_filename(osmo_stderr_target, 0);
+ log_set_category_filter(osmo_stderr_target, DTBF, 1, LOGL_INFO);
if (getenv("LOGL_DEBUG"))
log_set_log_level(osmo_stderr_target, LOGL_DEBUG);
diff --git a/tests/types/TypesTest.cpp b/tests/types/TypesTest.cpp
index e3c0991d..b46a82b5 100644
--- a/tests/types/TypesTest.cpp
+++ b/tests/types/TypesTest.cpp
@@ -915,6 +915,9 @@ int main(int argc, char **argv)
log_set_use_color(osmo_stderr_target, 0);
log_set_print_filename(osmo_stderr_target, 0);
+ log_set_category_filter(osmo_stderr_target, DTBF, 1, LOGL_INFO);
+ log_set_category_filter(osmo_stderr_target, DTBFUL, 1, LOGL_INFO);
+
printf("Making some basic type testing.\n");
test_llc();