From bcd9f50ad0876a2c094e10756c41e57e3575c09b Mon Sep 17 00:00:00 2001 From: Jürgen Knödlseder Date: Tue, 27 Sep 2016 11:41:13 +0200 Subject: [PATCH] Use new logging methods --- cscripts/cscaldb.py | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/cscripts/cscaldb.py b/cscripts/cscaldb.py index 4ccdad1..c6b94ab 100755 --- a/cscripts/cscaldb.py +++ b/cscripts/cscaldb.py @@ -166,9 +166,7 @@ class cscaldb(ctools.cscript): continue # Write mission into logger - if self._logTerse(): - self._log('\n') - self._log.header1('Mission: '+mission) + self._log_header1(gammalib.TERSE, 'Mission: '+mission) # Extract instruments instruments = self._get_instruments(caldb, mission) @@ -176,10 +174,9 @@ class cscaldb(ctools.cscript): # Loop over instruments for instrument in instruments: - # Write mission into logger - if self._logTerse(): - self._log.header3('Response functions in database "'+ - instrument+'"') + # Write instrument into logger + self._log_header3(gammalib.TERSE, 'Response functions in database "'+ + instrument+'"') # Open calibration index file and retrieve calibrations filename = '/data/'+mission+'/'+instrument+'/caldb.indx' -- libgit2 0.21.4