From: Vsevolod Stakhov Date: Mon, 22 Dec 2014 15:59:16 +0000 (+0000) Subject: Avoid debug noise. X-Git-Tag: 0.8.0~41 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=7eb157330ce1c64bad55bd454055289c5ea5358d;p=rspamd.git Avoid debug noise. --- 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;