IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 8226 for trunk/psLib/src/sys


Ignore:
Timestamp:
Aug 7, 2006, 3:53:31 PM (20 years ago)
Author:
jhoblitt
Message:

bug #791 - change p_psError() to use psTrace() instead of psLogMsg()

File:
1 edited

Legend:

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

    r7300 r8226  
    1010 *  @author Eric Van Alst, MHPCC
    1111 *
    12  *  @version $Revision: 1.30 $ $Name: not supported by cvs2svn $
    13  *  @date $Date: 2006-06-02 21:33:34 $
     12 *  @version $Revision: 1.31 $ $Name: not supported by cvs2svn $
     13 *  @date $Date: 2006-08-08 01:53:31 $
    1414 *
    1515 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    2323#include "psError.h"
    2424#include "psMemory.h"
     25#include "psString.h"
     26#include "psTrace.h"
    2527
    2628#define MAX_ERROR_STACK_SIZE 64
     
    101103    pushErrorStack(err);
    102104
    103     // Call logging function with PS_LOG_ERROR level
    104     psLogMsg(msgName, PS_LOG_ERROR, errMsg);
     105    #ifndef PS_NO_TRACE
     106    // Call tracing function with PS_LOG_ERROR level
     107    psString facil = NULL;
     108    psStringAppend(&facil, "err.%s", func);
     109    psTrace(facil, PS_LOG_ERROR, "%s : %s", err->name, err->msg);
     110    psFree(facil);
     111    #endif
    105112
    106113    // Clean up stack after variable argument has been used
Note: See TracChangeset for help on using the changeset viewer.