diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-12-22 15:59:16 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-12-22 15:59:16 +0000 |
commit | 7eb157330ce1c64bad55bd454055289c5ea5358d (patch) | |
tree | 39b9d7341c7ce666c1e24245facf377b80668806 /src | |
parent | b4032b445f9336499959d432008250b8a3dee763 (diff) | |
download | rspamd-7eb157330ce1c64bad55bd454055289c5ea5358d.tar.gz rspamd-7eb157330ce1c64bad55bd454055289c5ea5358d.zip |
Avoid debug noise.
Diffstat (limited to 'src')
-rw-r--r-- | src/libserver/fuzzy_backend.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libserver/fuzzy_backend.c b/src/libserver/fuzzy_backend.c index 480e97b15..1c0ceb8b5 100644 --- a/src/libserver/fuzzy_backend.c +++ b/src/libserver/fuzzy_backend.c @@ -272,9 +272,9 @@ rspamd_fuzzy_backend_run_stmt (struct rspamd_fuzzy_backend *bk, int idx, ...) if (retcode == prepared_stmts[idx].result) { return SQLITE_OK; } - else { - msg_debug ("failed to execute query %s: %s", prepared_stmts[idx].sql, - sqlite3_errmsg (bk->db)); + else if (retcode != SQLITE_DONE) { + msg_debug ("failed to execute query %s: %d, %s", prepared_stmts[idx].sql, + retcode, sqlite3_errmsg (bk->db)); } return retcode; |