From 9ec49e2411abb206c82af643d18e2ada82e865e2 Mon Sep 17 00:00:00 2001 From: Jacob Erlbeck Date: Mon, 29 Jun 2015 13:00:20 +0200 Subject: 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 --- tests/alloc/AllocTest.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests/alloc') diff --git a/tests/alloc/AllocTest.cpp b/tests/alloc/AllocTest.cpp index 70c85519..5a91f6a6 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(); -- cgit v1.2.3