aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJacob Erlbeck <jerlbeck@sysmocom.de>2015-06-29 13:00:20 +0200
committerJacob Erlbeck <jerlbeck@sysmocom.de>2015-06-29 13:00:20 +0200
commit8b5add11527ee7108d0f11cf55d972651a4a0eb1 (patch)
tree74cf1483d7837ab42d306708cb6ba1db4f1dc921
parent8f37bfe3abfaeda30de7f1f2f813c7b9b20f39ac (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
-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 36b1c950..3968c5ff 100644
--- a/tests/alloc/AllocTest.cpp
+++ b/tests/alloc/AllocTest.cpp
@@ -488,6 +488,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();