summaryrefslogtreecommitdiffstats
path: root/libglusterfs/src/gfdb/gfdb_sqlite3.h
diff options
context:
space:
mode:
authorMohamed Ashiq <ashiq333@gmail.com>2015-05-19 14:55:38 +0530
committerNiels de Vos <ndevos@redhat.com>2015-06-10 01:54:14 -0700
commit2847b03a38515a625e36d52c7e0a1d37107d72ba (patch)
tree97810d4927f3b794c6221152d1e9a91016a8dec7 /libglusterfs/src/gfdb/gfdb_sqlite3.h
parent9374b2ef417104ba51bc03a55ff8c5a521c749f4 (diff)
gfdb/libglusterfs : Porting to a new logging framework
Change-Id: I61874561fdf2c175d2b3eec0c85c25f12dc60552 BUG: 1194640 Signed-off-by: Mohamed Ashiq <ashiq333@gmail.com> Reviewed-on: http://review.gluster.org/10819 Tested-by: NetBSD Build System <jenkins@build.gluster.org> Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Joseph Fernandes
Diffstat (limited to 'libglusterfs/src/gfdb/gfdb_sqlite3.h')
-rw-r--r--libglusterfs/src/gfdb/gfdb_sqlite3.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/libglusterfs/src/gfdb/gfdb_sqlite3.h b/libglusterfs/src/gfdb/gfdb_sqlite3.h
index 5b6921eafe2..213693136fe 100644
--- a/libglusterfs/src/gfdb/gfdb_sqlite3.h
+++ b/libglusterfs/src/gfdb/gfdb_sqlite3.h
@@ -17,6 +17,7 @@
#include "logging.h"
#include "gfdb_data_store_types.h"
#include "gfdb_mem-types.h"
+#include "libglusterfs-messages.h"
#define GF_STMT_SIZE_MAX 2048
@@ -132,7 +133,8 @@ typedef struct gf_sql_connection {
do {\
GF_VALIDATE_OR_GOTO(GFDB_STR_SQLITE3, sql_conn, out);\
if (!sql_conn->sqlite3_db_conn) {\
- gf_log (GFDB_STR_SQLITE3, GF_LOG_ERROR,\
+ gf_msg (GFDB_STR_SQLITE3, GF_LOG_ERROR, 0,\
+ LG_MSG_CONNECTION_INIT_FAILED,\
"sqlite3 connection not initialized");\
goto out;\
};\
@@ -145,7 +147,7 @@ do {\
ret = sqlite3_exec (sql_conn->sqlite3_db_conn, sqlite3_config_str,\
NULL, NULL, NULL);\
if (ret != SQLITE_OK) {\
- gf_log (GFDB_STR_SQLITE3, GF_LOG_ERROR,\
+ gf_msg (GFDB_STR_SQLITE3, GF_LOG_ERROR, 0, LG_MSG_EXEC_FAILED,\
"Failed executing: %s : %s",\
sqlite3_config_str, sqlite3_errmsg\
(sql_conn->sqlite3_db_conn));\