Index: trunk/psLib/src/sys/psError.c
===================================================================
--- trunk/psLib/src/sys/psError.c	(revision 7300)
+++ trunk/psLib/src/sys/psError.c	(revision 8226)
@@ -10,6 +10,6 @@
  *  @author Eric Van Alst, MHPCC
  *
- *  @version $Revision: 1.30 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2006-06-02 21:33:34 $
+ *  @version $Revision: 1.31 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2006-08-08 01:53:31 $
  *
  *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
@@ -23,4 +23,6 @@
 #include "psError.h"
 #include "psMemory.h"
+#include "psString.h"
+#include "psTrace.h"
 
 #define MAX_ERROR_STACK_SIZE 64
@@ -101,6 +103,11 @@
     pushErrorStack(err);
 
-    // Call logging function with PS_LOG_ERROR level
-    psLogMsg(msgName, PS_LOG_ERROR, errMsg);
+    #ifndef PS_NO_TRACE
+    // Call tracing function with PS_LOG_ERROR level
+    psString facil = NULL;
+    psStringAppend(&facil, "err.%s", func);
+    psTrace(facil, PS_LOG_ERROR, "%s : %s", err->name, err->msg);
+    psFree(facil);
+    #endif
 
     // Clean up stack after variable argument has been used
