IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 31973


Ignore:
Timestamp:
Aug 2, 2011, 3:49:19 PM (15 years ago)
Author:
rhenders
Message:

now reporting to log a count of detections imported from DVO

File:
1 edited

Legend:

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

    r31935 r31973  
    434434        p.wait()
    435435        #        out = p.stdout.read()
    436         self.logger.infoPair("DVO access", "complete")
    437 
    438         if self.scratchDb.getRowCount("dvoDetection") < 1:
    439             self.logger.error("No DVO IDs found")
     436
     437        rowCount = self.scratchDb.getRowCount("dvoDetection")
     438        if rowCount < 1:
     439            self.logger.errorPair("DVO error", "No IDs found")
    440440            return False
     441
     442        self.logger.infoPair("DVO access complete. Found", "%d detections" % rowCount)
    441443           
    442444        return True
Note: See TracChangeset for help on using the changeset viewer.