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: I089c0001fc75e81558c3e860827e4d434cf1eab3
Related: OS#5034
changes/79/22979/3
Pau Espin 2 years ago
parent ac6ccd9295
commit 8d02d99158
  1. 1
      tests/db_sms/db_sms_test.c
  2. 1
      tests/msc_vlr/msc_vlr_tests.c
  3. 2
      tests/smpp/smpp_test.c

@ -519,6 +519,7 @@ int main(int argc, char **argv)
log_set_use_color(osmo_stderr_target, 0);
log_set_print_timestamp(osmo_stderr_target, 0);
log_set_print_filename(osmo_stderr_target, 0);
log_set_print_category_hex(osmo_stderr_target, 0);
log_set_print_category(osmo_stderr_target, 1);
log_set_print_level(osmo_stderr_target, 1);

@ -1192,6 +1192,7 @@ int main(int argc, char **argv)
log_set_print_timestamp(osmo_stderr_target, 0);
log_set_print_filename(osmo_stderr_target, 0);
log_set_print_category(osmo_stderr_target, 1);
log_set_print_category_hex(osmo_stderr_target, 0);
log_set_category_filter(osmo_stderr_target, DLSMS, 1, LOGL_DEBUG);
if (cmdline_opts.verbose) {

@ -81,6 +81,8 @@ int main(int argc, char **argv)
osmo_init_logging2(ctx, &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);
test_coding_scheme();
return EXIT_SUCCESS;

Loading…
Cancel
Save