aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeels Hofmeyr <nhofmeyr@sysmocom.de>2017-05-14 16:16:31 +0200
committerNeels Hofmeyr <nhofmeyr@sysmocom.de>2017-05-15 12:22:35 +0000
commit39b0b89caf0a9352954492916b5fd7ffafac0edb (patch)
treee73256747aaaa6c81c66f8e319d50bb8f2c2d346
parent2296883fc322d3ed5855c59a37477fa0ab2b016a (diff)
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
-rw-r--r--src/osmo_gsm_tester/trial.py4
1 files changed, 3 insertions, 1 deletions
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 @@ class Trial(log.Origin):
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__()