Author: ajborley
Date: Mon Sep 11 04:39:37 2006
New Revision: 442184

URL: http://svn.apache.org/viewvc?view=rev&rev=442184
Log:
Log something when an exception is created

Modified:
    incubator/tuscany/cpp/sca/runtime/core/src/tuscany/sca/util/Exceptions.cpp

Modified: 
incubator/tuscany/cpp/sca/runtime/core/src/tuscany/sca/util/Exceptions.cpp
URL: 
http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/runtime/core/src/tuscany/sca/util/Exceptions.cpp?view=diff&rev=442184&r1=442183&r2=442184
==============================================================================
--- incubator/tuscany/cpp/sca/runtime/core/src/tuscany/sca/util/Exceptions.cpp 
(original)
+++ incubator/tuscany/cpp/sca/runtime/core/src/tuscany/sca/util/Exceptions.cpp 
Mon Sep 11 04:39:37 2006
@@ -18,6 +18,7 @@
  */
 
 #include "tuscany/sca/util/Exceptions.h"
+#include "tuscany/sca/util/Logging.h"
 using namespace std;
 
 namespace tuscany
@@ -37,6 +38,7 @@
             strcpy(class_name,name);
             message_text = new char[strlen(msg_text)+1];
             strcpy(message_text,msg_text);
+            LOGERROR_2(1, "%s raised: %s", class_name, message_text);
             
         } // end TuscanyRuntimeException constuctor
         
@@ -60,6 +62,7 @@
                 locations[i].function = new 
char[strlen(c.locations[i].function) + 1];
                 strcpy(locations[i].function, c.locations[i].function);
             }
+            LOGERROR_2(1, "%s raised: %s", class_name, message_text);
         }
         
         // 
========================================================================



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to