IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 23195 for trunk/ppStack


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/ppStack/src
Files:
3 edited

Legend:

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

    r21258 r23195  
    3333        goto die;
    3434    }
     35
     36    ppStackVersionPrint();
    3537
    3638    if (!pmModelClassInit()) {
  • trunk/ppStack/src/ppStack.h

    r23192 r23195  
    146146    );
    147147
     148/// Print version information
     149void ppStackVersionPrint(void);
     150
    148151/// Convolve image to match specified seeing
    149152bool ppStackMatch(pmReadout *readout,   // Readout to be convolved; replaced with output
  • trunk/ppStack/src/ppStackVersion.c

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