Commit cc26eb53bd3aae2838d69388cc4382bdf8b28c54
1 parent
d5723812
Improve logging in csobsinfo
Showing
1 changed file
with
6 additions
and
1 deletions
cscripts/csobsinfo.py
| ... | ... | @@ -136,7 +136,12 @@ class csobsinfo(ctools.csobservation): |
| 136 | 136 | |
| 137 | 137 | # Logging |
| 138 | 138 | if self._logExplicit(): |
| 139 | - self._log.header2(obs_name) | |
| 139 | + obs_id = obs.id() | |
| 140 | + if obs_id != '': | |
| 141 | + log_name = obs_name + ' (ID='+obs_id+')' | |
| 142 | + else: | |
| 143 | + log_name = obs_name | |
| 144 | + self._log.header2(log_name) | |
| 140 | 145 | |
| 141 | 146 | # Retrieve observation name |
| 142 | 147 | obs_names.append(obs_name) | ... | ... |