IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 23195 for trunk/ppImage/src


Ignore:
Timestamp:
Mar 5, 2009, 11:07:57 AM (17 years ago)
Author:
Paul Price
Message:

Adding function to print version information so it's captured in the log.

Location:
trunk/ppImage/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppImage/src/ppImage.c

    r19928 r23195  
    2121        exit(PS_EXIT_CONFIG_ERROR);
    2222    }
     23
     24    ppImageVersionPrint();
    2325
    2426    // define recipe options
  • trunk/ppImage/src/ppImage.h

    r23164 r23195  
    218218    );
    219219
     220/// Print version information
     221void ppImageVersionPrint(void);
     222
    220223
    221224// calculate stats, including MD5
  • trunk/ppImage/src/ppImageVersion.c

    r23165 r23195  
    7474    return true;
    7575}
     76
     77
     78void ppImageVersionPrint(void)
     79{
     80    psTime *time = psTimeGetNow(PS_TIME_TAI); // The time now
     81    psString timeString = psTimeToISO(time); // The time in an ISO string
     82    psFree(time);
     83    psLogMsg("ppImage", PS_LOG_INFO, "ppImage at %s", timeString);
     84    psFree(timeString);
     85
     86    psString pslib = psLibVersionLong();// psLib version
     87    psString psmodules = psModulesVersionLong(); // psModules version
     88    psString psphot = psphotVersionLong(); // psphot version
     89    psString psastro = psastroVersionLong(); // psastro version
     90    psString ppStats = ppStatsVersionLong(); // ppStats version
     91    psString ppImage = ppImageVersionLong(); // ppImage version
     92
     93    psLogMsg("ppImage", PS_LOG_INFO, "%s", pslib);
     94    psLogMsg("ppImage", PS_LOG_INFO, "%s", psmodules);
     95    psLogMsg("ppImage", PS_LOG_INFO, "%s", psphot);
     96    psLogMsg("ppImage", PS_LOG_INFO, "%s", psastro);
     97    psLogMsg("ppImage", PS_LOG_INFO, "%s", ppStats);
     98    psLogMsg("ppImage", PS_LOG_INFO, "%s", ppImage);
     99
     100    psFree(pslib);
     101    psFree(psmodules);
     102    psFree(psphot);
     103    psFree(psastro);
     104    psFree(ppStats);
     105    psFree(ppImage);
     106
     107    return;
     108}
Note: See TracChangeset for help on using the changeset viewer.