From b8e62273f640163adeeb30d4f9fbb6a9d40ba353 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Tue, 26 Jan 2016 14:18:14 +0000 Subject: [PATCH] Increase severity of sqlite errors --- src/libutil/sqlite_utils.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libutil/sqlite_utils.c b/src/libutil/sqlite_utils.c index d9b441761..0d9631106 100644 --- a/src/libutil/sqlite_utils.c +++ b/src/libutil/sqlite_utils.c @@ -178,8 +178,8 @@ rspamd_sqlite3_run_prstmt (rspamd_mempool_t *pool, sqlite3 *db, GArray *stmts, return SQLITE_OK; } - else if (retcode != SQLITE_DONE) { - msg_debug_pool ("failed to execute query %s: %d, %s", nst->sql, + else if (retcode != SQLITE_DONE && retcode != SQLITE_OK && retcode != SQLITE_ROW) { + msg_warn_pool ("failed to execute query %s: %d, %s", nst->sql, retcode, sqlite3_errmsg (db)); } -- 2.39.5