You are viewing a plain text version of this content. The canonical link for it is here.
Posted to sandesha-dev@ws.apache.org by da...@apache.org on 2007/12/13 10:02:34 UTC

svn commit: r603859 - in /webservices/sandesha/trunk/c/src/util: msg_init.c sandesha2_utils.c

Author: damitha
Date: Thu Dec 13 01:02:32 2007
New Revision: 603859

URL: http://svn.apache.org/viewvc?rev=603859&view=rev
Log:
adding log/trace messages

Modified:
    webservices/sandesha/trunk/c/src/util/msg_init.c
    webservices/sandesha/trunk/c/src/util/sandesha2_utils.c

Modified: webservices/sandesha/trunk/c/src/util/msg_init.c
URL: http://svn.apache.org/viewvc/webservices/sandesha/trunk/c/src/util/msg_init.c?rev=603859&r1=603858&r2=603859&view=diff
==============================================================================
--- webservices/sandesha/trunk/c/src/util/msg_init.c (original)
+++ webservices/sandesha/trunk/c/src/util/msg_init.c Thu Dec 13 01:02:32 2007
@@ -290,6 +290,8 @@
     sandesha2_make_connection_t *make_conn = NULL;
     int temp_flow = -1;
 
+    AXIS2_LOG_TRACE(env->log, AXIS2_LOG_SI, 
+        "[sandesha2]Entry:validate_msg");
     temp_msg_ctx = sandesha2_msg_ctx_get_msg_ctx(rm_msg_ctx, env);
     conf_ctx = axis2_msg_ctx_get_conf_ctx(temp_msg_ctx, env);
     conf = axis2_conf_ctx_get_conf(conf_ctx, env);
@@ -460,6 +462,8 @@
             }
         }
     }
+    AXIS2_LOG_TRACE(env->log, AXIS2_LOG_SI, 
+        "[sandesha2]Exit:validate_msg");
     return AXIS2_TRUE; 
 }
 
@@ -479,6 +483,9 @@
         axis2_svc_t *svc = NULL;
         axutil_qname_t *tmp_qname = NULL;
     
+        AXIS2_LOG_DEBUG(env->log, AXIS2_LOG_SI, 
+            "[sandesha2]Message context operation is NULL. So adding default "\
+            "operation");
         tmp_qname = axutil_qname_create(env, "__OPERATION_OUT_IN__", NULL, 
                 NULL);
         if (!tmp_qname)

Modified: webservices/sandesha/trunk/c/src/util/sandesha2_utils.c
URL: http://svn.apache.org/viewvc/webservices/sandesha/trunk/c/src/util/sandesha2_utils.c?rev=603859&r1=603858&r2=603859&view=diff
==============================================================================
--- webservices/sandesha/trunk/c/src/util/sandesha2_utils.c (original)
+++ webservices/sandesha/trunk/c/src/util/sandesha2_utils.c Thu Dec 13 01:02:32 2007
@@ -168,7 +168,9 @@
     axis2_char_t *value = NULL;
     sandesha2_storage_mgr_t *storage_mgr = NULL;
     sandesha2_property_bean_t *prop_bean = NULL;
-    
+   
+    AXIS2_LOG_TRACE(env->log, AXIS2_LOG_SI, 
+        "[sandesha2]Entry:sandesha2_utils_get_storage_mgr");
     AXIS2_PARAM_CHECK(env->error, conf_ctx, NULL);
     AXIS2_PARAM_CHECK(env->error, conf, NULL);
     
@@ -193,6 +195,8 @@
         return NULL;
     }
     axutil_allocator_switch_to_local_pool(env->allocator);
+    AXIS2_LOG_TRACE(env->log, AXIS2_LOG_SI, 
+        "[sandesha2]Exit:sandesha2_utils_get_storage_mgr");
     return storage_mgr;
 }
                         
@@ -533,8 +537,9 @@
             AXIS2_FALSE, 0, storage_mgr);
         axis2_ctx_set_property(ctx, env, SANDESHA2_PERMANENT_STORAGE_MGR, 
             property);
-        AXIS2_LOG_DEBUG(env->log, AXIS2_LOG_SI, 
-            "[sandesha2]Could not create storage_mgr");
+        if(!storage_mgr)
+            AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, 
+                "[sandesha2]Could not create storage_mgr");
     }
     return storage_mgr;
 }



---------------------------------------------------------------------
To unsubscribe, e-mail: sandesha-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: sandesha-dev-help@ws.apache.org