]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Print full fuzzy hash digest in the logs
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 12 Nov 2016 12:16:04 +0000 (12:16 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 12 Nov 2016 12:33:41 +0000 (12:33 +0000)
src/plugins/fuzzy_check.c

index 8d1d1c2266d24ee020e790b4c7a01b50444b8c5f..e08e4a70f3b36c2de2575268f289544966b8e144 100644 (file)
@@ -1462,7 +1462,7 @@ fuzzy_insert_result (struct fuzzy_client_session *session,
        msg_info_task (
                        "found fuzzy hash %*xs with weight: "
                        "%.2f, in list: %s:%d%s",
-                       rspamd_fuzzy_hash_len, cmd->digest,
+                       (gint)sizeof (cmd->digest), cmd->digest,
                        nval,
                        symbol,
                        rep->flag,
@@ -1776,7 +1776,7 @@ fuzzy_controller_io_callback (gint fd, short what, void *arg)
                                if (rep->prob > 0.5) {
                                        msg_info_task ("processed fuzzy hash %*xs, list: %s:%d for "
                                                                        "message <%s>",
-                                                       rspamd_fuzzy_hash_len, cmd->digest,
+                                                       (gint)sizeof (cmd->digest), cmd->digest,
                                                        symbol,
                                                        rep->flag,
                                                        session->task->message_id);
@@ -1786,7 +1786,7 @@ fuzzy_controller_io_callback (gint fd, short what, void *arg)
                                                        "<%s>, %*xs, "
                                                        "list %s:%d, error: %d",
                                                        session->task->message_id,
-                                                       rspamd_fuzzy_hash_len, cmd->digest,
+                                                       (gint)sizeof (cmd->digest), cmd->digest,
                                                        symbol,
                                                        rep->flag,
                                                        rep->value);