From: Vsevolod Stakhov Date: Sat, 12 Nov 2016 12:16:04 +0000 (+0000) Subject: [Minor] Print full fuzzy hash digest in the logs X-Git-Tag: 1.4.0~86 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=f5beedafa37270026d406df26dae112c6eac353c;p=rspamd.git [Minor] Print full fuzzy hash digest in the logs --- diff --git a/src/plugins/fuzzy_check.c b/src/plugins/fuzzy_check.c index 8d1d1c226..e08e4a70f 100644 --- a/src/plugins/fuzzy_check.c +++ b/src/plugins/fuzzy_check.c @@ -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);