From: Vsevolod Stakhov Date: Tue, 26 Jan 2016 14:18:14 +0000 (+0000) Subject: Increase severity of sqlite errors X-Git-Tag: 1.1.2~30 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=b8e62273f640163adeeb30d4f9fbb6a9d40ba353;p=rspamd.git Increase severity of sqlite errors --- 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)); }