]> source.dussan.org Git - rspamd.git/commitdiff
Increase severity of sqlite errors
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 26 Jan 2016 14:18:14 +0000 (14:18 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 26 Jan 2016 14:18:14 +0000 (14:18 +0000)
src/libutil/sqlite_utils.c

index d9b4417617d8de900d7237e633c041e4359db5fd..0d9631106bf979194aa3f23ae4cf2ab9d936dfba 100644 (file)
@@ -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));
        }