IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.