From cc26eb53bd3aae2838d69388cc4382bdf8b28c54 Mon Sep 17 00:00:00 2001 From: Jürgen Knödlseder Date: Wed, 27 Feb 2019 12:15:02 +0100 Subject: [PATCH] Improve logging in csobsinfo --- cscripts/csobsinfo.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/cscripts/csobsinfo.py b/cscripts/csobsinfo.py index 9e1628a..3b25184 100755 --- a/cscripts/csobsinfo.py +++ b/cscripts/csobsinfo.py @@ -136,7 +136,12 @@ class csobsinfo(ctools.csobservation): # Logging if self._logExplicit(): - self._log.header2(obs_name) + obs_id = obs.id() + if obs_id != '': + log_name = obs_name + ' (ID='+obs_id+')' + else: + log_name = obs_name + self._log.header2(log_name) # Retrieve observation name obs_names.append(obs_name) -- libgit2 0.21.4