From b18d2a5fd983dad07bb5145e17b5af772f87a058 Mon Sep 17 00:00:00 2001 From: Pau Espin Pedrol Date: Fri, 19 Feb 2021 14:00:48 +0100 Subject: tests: Explicitly drop category from log Let's disable category here since we don't care about its formatting here. In any case, every test relying on logging output validation should always explicitly state the config to avoid issues in the future if default values change. Change-Id: I7f9c56313cfaa74ebe666f44763a83d8102f5484 Related: OS#5034 --- tests/alloc/AllocTest.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests/alloc/AllocTest.cpp') diff --git a/tests/alloc/AllocTest.cpp b/tests/alloc/AllocTest.cpp index ecc3e80f..eced0b84 100644 --- a/tests/alloc/AllocTest.cpp +++ b/tests/alloc/AllocTest.cpp @@ -814,6 +814,8 @@ 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_print_category(osmo_stderr_target, 0); + log_set_print_category_hex(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); -- cgit v1.2.3