Change in osmo-bsc[master]: handover_test: adjust logging for reproducability

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

neels gerrit-no-reply at lists.osmocom.org
Thu Dec 10 16:13:29 UTC 2020


neels has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-bsc/+/21661 )


Change subject: handover_test: adjust logging for reproducability
......................................................................

handover_test: adjust logging for reproducability

Do not show source file and line numbers in the log, so that the log
output remains unchanged for unrelated changes.

Also show the log level.

Change-Id: I8ebcaf16cd14881a3a41616dcff175e173db9ae8
---
M tests/handover/handover_test.c
1 file changed, 3 insertions(+), 1 deletion(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-bsc refs/changes/61/21661/1

diff --git a/tests/handover/handover_test.c b/tests/handover/handover_test.c
index 41211ac..da620a5 100644
--- a/tests/handover/handover_test.c
+++ b/tests/handover/handover_test.c
@@ -1295,9 +1295,11 @@
 
 	osmo_init_logging2(ctx, &log_info);
 
+	log_set_print_filename2(osmo_stderr_target, LOG_FILENAME_NONE);
 	log_set_print_category(osmo_stderr_target, 1);
 	log_set_print_category_hex(osmo_stderr_target, 0);
-	log_set_print_filename2(osmo_stderr_target, LOG_FILENAME_BASENAME);
+	log_set_print_level(osmo_stderr_target, 1);
+	log_set_print_timestamp(osmo_stderr_target, 0);
 	osmo_fsm_log_addr(false);
 
 	bsc_network_alloc();

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-bsc/+/21661
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-bsc
Gerrit-Branch: master
Gerrit-Change-Id: I8ebcaf16cd14881a3a41616dcff175e173db9ae8
Gerrit-Change-Number: 21661
Gerrit-PatchSet: 1
Gerrit-Owner: neels <nhofmeyr at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20201210/17d7050a/attachment.htm>


More information about the gerrit-log mailing list