aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2021-02-19 14:08:44 +0100
committerPau Espin Pedrol <pespin@sysmocom.de>2021-02-19 14:08:44 +0100
commit56237bce95ab95f238347a8d8bbaeaacdb99b954 (patch)
tree60ce5c3d417e67d0e3c865738d639e2a31682e45
parent5738940535e86bcfb0520342a15971d645e6a54a (diff)
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: Iaa77f8a7d3f752173507afd988bd76a8aa632082 Related: OS#5034
-rw-r--r--tests/CommonLibs/LogTest.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/CommonLibs/LogTest.cpp b/tests/CommonLibs/LogTest.cpp
index 0087070..973e5b2 100644
--- a/tests/CommonLibs/LogTest.cpp
+++ b/tests/CommonLibs/LogTest.cpp
@@ -61,6 +61,8 @@ int main(int argc, char *argv[])
log_set_use_color(osmo_stderr_target, 0);
log_set_print_filename(osmo_stderr_target, 0);
log_set_print_level(osmo_stderr_target, 1);
+ log_set_print_category(osmo_stderr_target, 0);
+ log_set_print_category_hex(osmo_stderr_target, 0);
Log(MYCAT, LOGL_FATAL, __BASE_FILE__, __LINE__).get() << "testing the logger.";
Log(MYCAT, LOGL_ERROR, __BASE_FILE__, __LINE__).get() << "testing the logger.";