ws-sandesha-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dami...@apache.org
Subject svn commit: r701931 - /webservices/sandesha/trunk/c/src/storage/sqlite/permanent_bean_mgr.c
Date Mon, 06 Oct 2008 04:05:10 GMT
Author: damitha
Date: Sun Oct  5 21:05:09 2008
New Revision: 701931

URL: http://svn.apache.org/viewvc?rev=701931&view=rev
Log:
Descriptive error log message

Modified:
    webservices/sandesha/trunk/c/src/storage/sqlite/permanent_bean_mgr.c

Modified: webservices/sandesha/trunk/c/src/storage/sqlite/permanent_bean_mgr.c
URL: http://svn.apache.org/viewvc/webservices/sandesha/trunk/c/src/storage/sqlite/permanent_bean_mgr.c?rev=701931&r1=701930&r2=701931&view=diff
==============================================================================
--- webservices/sandesha/trunk/c/src/storage/sqlite/permanent_bean_mgr.c (original)
+++ webservices/sandesha/trunk/c/src/storage/sqlite/permanent_bean_mgr.c Sun Oct  5 21:05:09
2008
@@ -230,8 +230,8 @@
     if( rc != SQLITE_OK )
     {
         AXIS2_ERROR_SET(env->error, SANDESHA2_ERROR_SQL_ERROR, AXIS2_FAILURE);
-        AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "sql stmt: %s. sql error: %s", 
-            sql_stmt_insert, error_msg);
+        AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "sql stmt: %s. sql error: %s", sql_stmt_insert,

+                error_msg);
         sqlite3_free(error_msg);
         sqlite3_close(dbconn);
         return AXIS2_FALSE;
@@ -341,8 +341,8 @@
     if(rc != SQLITE_OK )
     {
         AXIS2_ERROR_SET(env->error, SANDESHA2_ERROR_SQL_ERROR, AXIS2_FAILURE);
-        AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "sql error %s", 
-            error_msg);
+        AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "sql_stmt:%s. sql error %s", sql_stmt_update,

+                error_msg);
         sqlite3_free(error_msg);
         sqlite3_close(dbconn);
         return AXIS2_FALSE;
@@ -384,10 +384,13 @@
         if(data_array)
             axutil_array_list_free(data_array, env);
         if(args)
+        {
             AXIS2_FREE(env->allocator, args);
+        }
+
         AXIS2_ERROR_SET(env->error, SANDESHA2_ERROR_SQL_ERROR, AXIS2_FAILURE);
-        AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "sql error %s", 
-            error_msg);
+        AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "sql_stmt:%s. sql error %s", sql_stmt_find,

+                error_msg);
         sqlite3_close(dbconn);
         sqlite3_free(error_msg);
         return NULL;
@@ -433,8 +436,8 @@
     if(rc != SQLITE_OK )
     {
         AXIS2_ERROR_SET(env->error, SANDESHA2_ERROR_SQL_ERROR, AXIS2_FAILURE);
-        AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "sql error %s",
-            error_msg);
+        AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "sql_stmt:%s. sql error %s", sql_stmt_retrieve,

+                error_msg);
         sqlite3_free(error_msg);
         sqlite3_close(dbconn);
         return AXIS2_FALSE;
@@ -530,7 +533,8 @@
     if( rc != SQLITE_OK )
     {
         AXIS2_ERROR_SET(env->error, SANDESHA2_ERROR_SQL_ERROR, AXIS2_FAILURE);
-        AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "sql error %s", error_msg);
+        AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "sql_stmt:%s. sql error %s", sql_stmt_update,

+                error_msg);
         AXIS2_FREE(env->allocator, sql_stmt_update);
         sqlite3_free(error_msg);
         sqlite3_close(dbconn);
@@ -623,7 +627,8 @@
     if( rc != SQLITE_OK )
     {
         AXIS2_ERROR_SET(env->error, SANDESHA2_ERROR_SQL_ERROR, AXIS2_FAILURE);
-        AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "sql error %s", error_msg);
+        AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "sql_stmt:%s. sql error %s", sql_stmt_insert,

+                error_msg);
         AXIS2_FREE(env->allocator, sql_stmt_insert);
         sqlite3_free(error_msg);
         sqlite3_close(dbconn);
@@ -659,8 +664,8 @@
     if(rc != SQLITE_OK )
     {
         AXIS2_ERROR_SET(env->error, SANDESHA2_ERROR_SQL_ERROR, AXIS2_FAILURE);
-        AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "sql error %s",
-            error_msg);
+        AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "sql_stmt:%s. sql error %s", sql_stmt_remove,

+                error_msg);
         sqlite3_free(error_msg);
         sqlite3_close(dbconn);
         return AXIS2_FALSE;
@@ -703,7 +708,8 @@
     if( rc != SQLITE_OK )
     {
         AXIS2_ERROR_SET(env->error, SANDESHA2_ERROR_SQL_ERROR, AXIS2_FAILURE);
-        AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "sql error %s", error_msg);
+        AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "sql_stmt:%s. sql error %s", sql_stmt_insert,

+                error_msg);
         AXIS2_FREE(env->allocator, sql_stmt_insert);
         sqlite3_free(error_msg);
         sqlite3_close(dbconn);
@@ -742,8 +748,8 @@
     if(rc != SQLITE_OK )
     {
         AXIS2_ERROR_SET(env->error, SANDESHA2_ERROR_SQL_ERROR, AXIS2_FAILURE);
-        AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "sql error %s",
-            error_msg);
+        AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "sql_stmt:%s. sql error %s", sql_stmt_remove,

+                error_msg);
         sqlite3_free(error_msg);
         sqlite3_close(dbconn);
         return AXIS2_FALSE;
@@ -786,8 +792,8 @@
     if(rc != SQLITE_OK )
     {
         AXIS2_ERROR_SET(env->error, SANDESHA2_ERROR_SQL_ERROR, AXIS2_FAILURE);
-        AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "sql error %s",
-            error_msg);
+        AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "sql_stmt:%s. sql error %s", sql_stmt_retrieve,

+                error_msg);
         sqlite3_free(error_msg);
         sqlite3_close(dbconn);
         return AXIS2_FALSE;
@@ -833,10 +839,9 @@
     rc = sqlite3_open(dbname, &(dbconn));
     if(rc != SQLITE_OK)
     {
-        AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Can't open database: %s"
-            " sqlite error: %s\n", dbname, sqlite3_errmsg(dbconn));
-        AXIS2_ERROR_SET(env->error, SANDESHA2_ERROR_CANNOT_OPEN_DATABASE, 
-            AXIS2_FAILURE);
+        AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Can't open database: %s sqlite error:
%s", dbname, 
+                sqlite3_errmsg(dbconn));
+        AXIS2_ERROR_SET(env->error, SANDESHA2_ERROR_CANNOT_OPEN_DATABASE, AXIS2_FAILURE);
         sqlite3_close(dbconn);
         return NULL;
     }



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


Mime
View raw message