axis-c-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From billblo...@apache.org
Subject [axis-axis2-c-core] 03/14: Adding log message
Date Sat, 04 Apr 2020 15:07:35 GMT
This is an automated email from the ASF dual-hosted git repository.

billblough pushed a commit to branch 29092007
in repository https://gitbox.apache.org/repos/asf/axis-axis2-c-core.git

commit f866a5f5c18f1166810155b11489652033700e52
Author: Damitha N.M. Kumarage <damitha@apache.org>
AuthorDate: Sun Oct 14 12:51:20 2007 +0000

    Adding log message
---
 src/core/deployment/conf_init.c | 13 ++++++++++---
 1 file changed, 10 insertions(+), 3 deletions(-)

diff --git a/src/core/deployment/conf_init.c b/src/core/deployment/conf_init.c
index bf374e0..8bc667a 100644
--- a/src/core/deployment/conf_init.c
+++ b/src/core/deployment/conf_init.c
@@ -227,10 +227,17 @@ axis2_load_services(
                             return AXIS2_FAILURE;
                         }
                         axis2_svc_set_impl_class(svc_desc, env, impl_class);
-                        AXIS2_SVC_SKELETON_INIT_WITH_CONF((axis2_svc_skeleton_t
-                                                           *) impl_class, env,
-                                                          conf);
+                        status = AXIS2_SVC_SKELETON_INIT_WITH_CONF(
+                            (axis2_svc_skeleton_t*) impl_class, env, conf);
                         axutil_allocator_switch_to_local_pool(env->allocator);
+                        if(!status)
+                        {
+                            AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Service "\
+                                "%s initialization Failed. So exiting "\
+                                "conf_init()", axis2_svc_get_name(svc_desc, 
+                                    env));
+                            return AXIS2_FAILURE;
+                        }
                     }
                 }
             }


Mime
View raw message