IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 24, 2011, 11:03:32 AM (15 years ago)
Author:
rhenders
Message:

Changes to reflect those in Logger class

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippToPsps/src/InitBatch.c

    r31030 r31033  
    5959InitBatch* new_InitBatch(Logger* logger, int *argc, char **argv) {
    6060
    61     logger->print(logger, MSG_DEBUG, "InitBatch: Constructor\n");
     61    logger->print(logger, MSG_DEBUG, "InitBatch", "Constructor\n");
    6262    InitBatch *this = (InitBatch*)calloc(1, sizeof(InitBatch));
    6363
     
    8080int main(int argc, char **argv) {
    8181
    82     psTimerStart("initbatch");
    83 
    8482//    ippToPsps_VersionPrint();
    8583
    86     int exitCode;
    87 
    8884    Logger* logger = new_Logger(NULL);
     85    logger->print(logger, MSG_INFO, "main", "Creating new initialization batch\n");
    8986
    9087    InitBatch* initBatch = new_InitBatch(logger, &argc, argv);
    9188    initBatch->base.run(initBatch);
    92     exitCode = initBatch->base.exitCode;
     89    int exitCode = initBatch->base.exitCode;
    9390
    9491    initBatch->destroy(initBatch);
    9592
    96     double secs = psTimerMark("initbatch");
    97 
    98     logger->print(logger, MSG_INFO, "initbatch completed %ssuccessfully, with exit code %d, in %.1f %s\n",
    99             (exitCode == PS_EXIT_SUCCESS) ? "" : "un",
    100             exitCode,
    101             (secs<60.0) ? secs : (secs/60.0),
    102             (secs<60.0) ? "sec(s)" : "min(s)");
    10393
    10494    // tidy up
    105     psTimerStop();
    10695    psLibFinalize();
    10796    logger->destroy(logger);
Note: See TracChangeset for help on using the changeset viewer.