[MERGED] osmo-gsm-tester[master]: log the location of the detailed log file

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 Hofmeyr gerrit-no-reply at lists.osmocom.org
Mon May 15 12:22:36 UTC 2017


Neels Hofmeyr has submitted this change and it was merged.

Change subject: log the location of the detailed log file
......................................................................


log the location of the detailed log file

The idea is that if someone reads the short log and scratches her head, she can
notice that there is a more detailed log available.

Change-Id: Id5f443f1af0dc774d4d4c588a238b786a83e44d3
---
M src/osmo_gsm_tester/trial.py
1 file changed, 3 insertions(+), 1 deletion(-)

Approvals:
  Pau Espin Pedrol: Looks good to me, approved
  Jenkins Builder: Verified



diff --git a/src/osmo_gsm_tester/trial.py b/src/osmo_gsm_tester/trial.py
index 73e5322..a7c74c4 100644
--- a/src/osmo_gsm_tester/trial.py
+++ b/src/osmo_gsm_tester/trial.py
@@ -65,14 +65,16 @@
     def __enter__(self):
         # add a log target to log to the run dir
         run_dir = self.get_run_dir()
+        detailed_log = run_dir.new_child(FILE_LOG)
         self.log_targets = [
-            log.FileLogTarget(run_dir.new_child(FILE_LOG))
+            log.FileLogTarget(detailed_log)
               .set_all_levels(log.L_DBG)
               .style_change(trace=True),
             log.FileLogTarget(run_dir.new_child(FILE_LOG_BRIEF))
               .style_change(src=False, all_origins=False)
             ]
         self.log('Trial start')
+        self.log('Detailed log at', detailed_log)
         self.take()
         super().__enter__()
 

-- 
To view, visit https://gerrit.osmocom.org/2600
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Id5f443f1af0dc774d4d4c588a238b786a83e44d3
Gerrit-PatchSet: 3
Gerrit-Project: osmo-gsm-tester
Gerrit-Branch: master
Gerrit-Owner: Neels Hofmeyr <nhofmeyr at sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: Neels Hofmeyr <nhofmeyr at sysmocom.de>
Gerrit-Reviewer: Pau Espin Pedrol <pespin at sysmocom.de>



More information about the gerrit-log mailing list