IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 8581


Ignore:
Timestamp:
Aug 24, 2006, 4:24:02 PM (20 years ago)
Author:
jhoblitt
Message:

add TRACEDEST to config

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/config/pmConfig.c

    r8272 r8581  
    33 *  @author PAP, IfA
    44 *
    5  *  @version $Revision: 1.38 $ $Name: not supported by cvs2svn $
    6  *  @date $Date: 2006-08-10 21:49:16 $
     5 *  @version $Revision: 1.39 $ $Name: not supported by cvs2svn $
     6 *  @date $Date: 2006-08-25 02:24:02 $
    77 *
    88 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    393393        psTrace("psModules.config", 7, "Setting trace format to %s\n", traceFormat);
    394394        psTraceSetFormat(traceFormat);
     395    }
     396
     397    //
     398    // If LOGDEST is specified in the configuration file, then we must initialize
     399    // with a call to psLogSetDestination().
     400    // XXX: This is not spec'ed in the SDRS.
     401    //
     402    psString traceDest = psMetadataLookupStr(&mdok, config->site, "TRACEDEST");
     403    if (mdok && traceDest && strlen(traceDest) > 0) {
     404        psTrace("psModules.config", 7, "Setting trace destination to %s\n", traceDest);
     405        // XXX: Only stdout and stderr are provided for now; this section should be
     406        // expanded in the future to do files, and perhaps even sockets.
     407        if (!psTraceSetDestination(psMessageDestination(traceDest))) {
     408            psLogMsg(__func__, PS_LOG_WARN, "Unable to set trace destination to %s\n",
     409                     config->argv[argNum]);
     410        }
    395411    }
    396412
Note: See TracChangeset for help on using the changeset viewer.