aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeels Hofmeyr <neels@hofmeyr.de>2018-12-18 02:30:18 +0100
committerNeels Hofmeyr <neels@hofmeyr.de>2018-12-21 02:01:14 +0100
commit65c4ca946af283ab0eab0689a85211fc06ed75a5 (patch)
treede9fff5c692ac764b84a1a3c52b4ceeb8b00d6fa
parent140612c95773ec4aba0299d3a768f95188f7cff5 (diff)
msc_vlr_tests: tweak logging in verbose modeneels/log
-rw-r--r--tests/msc_vlr/msc_vlr_tests.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/tests/msc_vlr/msc_vlr_tests.c b/tests/msc_vlr/msc_vlr_tests.c
index de7600c..9de64f6 100644
--- a/tests/msc_vlr/msc_vlr_tests.c
+++ b/tests/msc_vlr/msc_vlr_tests.c
@@ -1016,11 +1016,16 @@ int main(int argc, char **argv)
OSMO_ASSERT(osmo_stderr_target);
log_set_use_color(osmo_stderr_target, 0);
log_set_print_timestamp(osmo_stderr_target, 0);
- log_set_print_filename(osmo_stderr_target, _log_lines? 1 : 0);
+ log_set_print_filename(osmo_stderr_target, 0);
log_set_print_category(osmo_stderr_target, 1);
- if (cmdline_opts.verbose)
+ if (cmdline_opts.verbose) {
log_set_category_filter(osmo_stderr_target, DLSMS, 1, LOGL_DEBUG);
+ log_set_print_filename2(osmo_stderr_target, LOG_FILENAME_BASENAME);
+ log_set_print_filename_pos(osmo_stderr_target, LOG_FILENAME_POS_LINE_END);
+ log_set_use_color(osmo_stderr_target, 1);
+ log_set_print_level(osmo_stderr_target, 1);
+ }
net = test_net(msc_vlr_tests_ctx);