aboutsummaryrefslogtreecommitdiffstats
path: root/src/libutil/sqlite_utils.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-01-26 14:18:14 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-01-26 14:18:14 +0000
commitb8e62273f640163adeeb30d4f9fbb6a9d40ba353 (patch)
treec970e25877243d6eb987093399c40fe66b047b30 /src/libutil/sqlite_utils.c
parent37ac7d9587286f91e6c4dbccdcb2559ca962ea94 (diff)
downloadrspamd-b8e62273f640163adeeb30d4f9fbb6a9d40ba353.tar.gz
rspamd-b8e62273f640163adeeb30d4f9fbb6a9d40ba353.zip
Increase severity of sqlite errors
Diffstat (limited to 'src/libutil/sqlite_utils.c')
-rw-r--r--src/libutil/sqlite_utils.c4
1 files 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));
}