aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJacob Erlbeck <jerlbeck@sysmocom.de>2015-06-29 13:00:20 +0200
committerJacob Erlbeck <jerlbeck@sysmocom.de>2015-07-03 12:05:51 +0200
commit9ec49e2411abb206c82af643d18e2ada82e865e2 (patch)
tree3b4a0dd22313e7c0d1dcaf6c661604ec5fee6337 /tests
parentfa464bbce90130a7f429cdbafac7b64b1fdacd32 (diff)
alloc/test: Use LOGL_DEBUG environment variable
When this environment variable is set, the logging level is set to LOGL_DEBUG to help debugging without putting everything into AllocTest.err. Sponsored-by: On-Waves ehf
Diffstat (limited to 'tests')
-rw-r--r--tests/alloc/AllocTest.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/alloc/AllocTest.cpp b/tests/alloc/AllocTest.cpp
index 70c8551..5a91f6a 100644
--- a/tests/alloc/AllocTest.cpp
+++ b/tests/alloc/AllocTest.cpp
@@ -609,6 +609,8 @@ int main(int argc, char **argv)
osmo_init_logging(&gprs_log_info);
log_set_use_color(osmo_stderr_target, 0);
log_set_print_filename(osmo_stderr_target, 0);
+ if (getenv("LOGL_DEBUG"))
+ log_set_log_level(osmo_stderr_target, LOGL_DEBUG);
test_alloc_a();
test_alloc_b();