summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-07-14 16:23:17 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-07-14 16:23:17 +0100
commit98a7518f0b8f5bec20b5995ffcfde079b3fc8138 (patch)
tree0a1fecf6ae5f54b9237aa87d2b6e89917abc5188 /src
parent5eb1f95de4a01b2e32fd292aff4c55f54b429c76 (diff)
downloadrspamd-98a7518f0b8f5bec20b5995ffcfde079b3fc8138.tar.gz
rspamd-98a7518f0b8f5bec20b5995ffcfde079b3fc8138.zip
[Fix] Improve error messages on fuzzy add
Diffstat (limited to 'src')
-rw-r--r--src/libmime/message.c8
-rw-r--r--src/plugins/fuzzy_check.c6
2 files changed, 7 insertions, 7 deletions
diff --git a/src/libmime/message.c b/src/libmime/message.c
index 4605d1c69..5f31cba59 100644
--- a/src/libmime/message.c
+++ b/src/libmime/message.c
@@ -1698,12 +1698,12 @@ rspamd_message_parse (struct rspamd_task *task)
}
if (task->queue_id) {
- msg_info_task ("loaded message; id: <%s>; queue-id: <%s>",
- task->message_id, task->queue_id);
+ msg_info_task ("loaded message; id: <%s>; queue-id: <%s>; size: %z",
+ task->message_id, task->queue_id, task->msg.len);
}
else {
- msg_info_task ("loaded message; id: <%s>",
- task->message_id);
+ msg_info_task ("loaded message; id: <%s>; size: %z",
+ task->message_id, task->msg.len);
}
return TRUE;
diff --git a/src/plugins/fuzzy_check.c b/src/plugins/fuzzy_check.c
index 3d35c2106..0dc803a6b 100644
--- a/src/plugins/fuzzy_check.c
+++ b/src/plugins/fuzzy_check.c
@@ -2200,7 +2200,7 @@ fuzzy_stat_command (struct rspamd_task *task)
}
}
-static inline gboolean
+static inline gint
register_fuzzy_controller_call (struct rspamd_http_connection_entry *entry,
struct fuzzy_rule *rule,
struct rspamd_task *task,
@@ -2213,7 +2213,7 @@ register_fuzzy_controller_call (struct rspamd_http_connection_entry *entry,
rspamd_inet_addr_t *addr;
struct rspamd_controller_session *session = entry->ud;
gint sock;
- gboolean ret = FALSE;
+ gint ret = -1;
/* Get upstream */
@@ -2254,7 +2254,7 @@ register_fuzzy_controller_call (struct rspamd_http_connection_entry *entry,
event_add (&s->timev, &s->tv);
(*saved)++;
- ret = TRUE;
+ ret = 1;
}
}