]> source.dussan.org Git - rspamd.git/commitdiff
Avoid debug noise.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 22 Dec 2014 15:59:16 +0000 (15:59 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 22 Dec 2014 15:59:16 +0000 (15:59 +0000)
src/libserver/fuzzy_backend.c

index 480e97b15bb47ca433cfc412acefd4997a7e3bc3..1c0ceb8b510b2648b1c71f9179cfc36df2f8a2fb 100644 (file)
@@ -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;