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/input_threads.c

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