IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 27, 2015, 2:38:19 PM (11 years ago)
Author:
eugene
Message:

add debug option to ippjython / ipptopsps.py; move some messages to debug; only do XY01 in test mode; test ingest of a FITS file to mysql

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippToPsps/jython/pslogger.py

    r35417 r38973  
    1111   This will default to stout and no file output
    1212   '''
    13    def setup(self, programName, basePath, skychunkName, host, pid, stdout=1, sendToFile=0):
     13   def setup(self, programName, basePath, skychunkName, host, pid, loggerLevel, stdout=1, sendToFile=0):
    1414
    1515       formatter = logging.Formatter('%(asctime)s.%(msecs)03d | %(levelname)7s | %(message)s', '%Y-%m-%d %H:%M:%S')
    16        self.setLevel(logging.INFO)
     16       self.setLevel(loggerLevel)
    1717
    1818       if sendToFile:
     
    3434       if sendToFile: print "Writing log to: " + FULLPATH
    3535
     36   def debugPair(self, first, second):
     37       self.debug("%-40s%s" % (first, second))
     38
    3639   def infoPair(self, first, second):
    3740       self.info("%-40s%s" % (first, second))
    3841
     42   def warningPair(self, first, second):
     43       self.warning("%-40s%s" % (first, second))
     44
    3945   def errorPair(self, first, second):
    4046       self.error("%-40s%s" % (first, second))
    41 
    42    def debugPair(self, first, second):
    43        self.debug("%-40s%s" % (first, second))
    4447
    4548   def infoTitle(self, str):
Note: See TracChangeset for help on using the changeset viewer.