IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 16, 2011, 4:12:01 PM (15 years ago)
Author:
rhenders
Message:

printing results in a table

File:
1 edited

Legend:

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

    r32087 r32115  
    4141results = {}
    4242
     43logger.info("+-----------+----------------+----------------+----------------+----------------+")
     44logger.info("|   Batch   | Loaded to ODM  |  Load failed   |  Merge worthy  |     Merged     |")
     45logger.info("+-----------+----------------+----------------+----------------+----------------+")
    4346for id in ids:
    4447
    4548   if odm.checkBatch(id, results):
    4649       ippToPspsDb.updateOdmStatus(id, results)
     50       logger.info("| B%08d | %14d | %14d | %14d | %14d |" %
     51               (id,
     52                results['LOADEDTOODM'],
     53                results['LOADFAILED'],
     54                results['MERGEWORTHY'],
     55                results['MERGED']))
     56   else:
     57       logger.info("| B%08d | failed to poll ODM                                                |" % id)
    4758
     59logger.info("+-----------+----------------+----------------+----------------+----------------+")
    4860
Note: See TracChangeset for help on using the changeset viewer.