IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 4, 2004, 1:37:39 PM (22 years ago)
Author:
desonia
Message:

found the server astyle upgrade was faulty, so the format was reset.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/sys/psLogMsg.c

    r1153 r1385  
    1111 *  @author George Gusciora, MHPCC
    1212 *
    13  *  @version $Revision: 1.20 $ $Name: not supported by cvs2svn $
    14  *  @date $Date: 2004-06-30 20:22:37 $
     13 *  @version $Revision: 1.21 $ $Name: not supported by cvs2svn $
     14 *  @date $Date: 2004-08-04 23:37:39 $
    1515 *
    1616 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    132132        psError(__func__,"The location, %s, for protocol 'dest' is invalid.",location);
    133133        return 1;
    134     } else if (strcmp(protocol,"file") == 0) {
    135         FILE* file = fopen(location,"w");
    136         if (file == NULL) {
    137             psError(__func__,"Could not open file '%s' for output.",location);
    138             return 1;
    139         }
    140         if (logDest != NULL && logDest != stderr && logDest != stdout) {
    141             fclose(logDest);
    142         }
    143         logDest = file;
    144         return 0;
    145     }
     134    } else
     135        if (strcmp(protocol,"file") == 0) {
     136            FILE* file = fopen(location,"w");
     137            if (file == NULL) {
     138                psError(__func__,"Could not open file '%s' for output.",location);
     139                return 1;
     140            }
     141            if (logDest != NULL && logDest != stderr && logDest != stdout) {
     142                fclose(logDest);
     143            }
     144            logDest = file;
     145            return 0;
     146        }
    146147
    147148    psError(__func__,"Do not know how to handle the protocol '%s'.",protocol);
     
    336337    if (head_ptr > head) {
    337338        *head_ptr++ = '|';
    338     } else if (!logMsg) { // no output desired
    339         return;
    340     }
     339    } else
     340        if (!logMsg) { // no output desired
     341            return;
     342        }
    341343    *head_ptr = '\0';
    342344
Note: See TracChangeset for help on using the changeset viewer.