IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 30, 2007, 12:15:19 PM (19 years ago)
Author:
eugene
Message:

send pantasks server stdout/stderr to named log files

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/opihi/pantasks/job_threads.c

    r12404 r13544  
    1414void *CheckJobsThread (void *data) {
    1515
     16  char log_stdout[128], log_stderr[128];
    1617  float next_timeout;
    1718
    1819  gprintInit ();  // each thread needs to init the printing system
     20
     21  // define server output log files
     22  if (VarConfig ("PANTASKS_SERVER_STDOUT", "%s", log_stdout) != NULL) {
     23      gprintSetFile (GP_LOG, log_stdout);
     24  }
     25  if (VarConfig ("PANTASKS_SERVER_STDERR", "%s", log_stderr) != NULL) {
     26      gprintSetFile (GP_ERR, log_stderr);
     27  }
     28
    1929  while (1) {
    2030
Note: See TracChangeset for help on using the changeset viewer.