aboutsummaryrefslogtreecommitdiffstats
path: root/src/controller.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-04-21 16:28:52 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-04-21 16:28:52 +0100
commit5ce6980be276909ad4dc53398c746432c0a6e4ff (patch)
treef7ed41513caeb5099874d5f2a0df85fc463f5f70 /src/controller.c
parent85f08724d0c9d5461ce00e1d86217753afe2681c (diff)
downloadrspamd-5ce6980be276909ad4dc53398c746432c0a6e4ff.tar.gz
rspamd-5ce6980be276909ad4dc53398c746432c0a6e4ff.zip
Small tweaks to logging of learned messages.
Diffstat (limited to 'src/controller.c')
-rw-r--r--src/controller.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/controller.c b/src/controller.c
index 4265000a4..ece5c86b0 100644
--- a/src/controller.c
+++ b/src/controller.c
@@ -30,10 +30,6 @@
#include "main.h"
#include "utlist.h"
-#ifdef WITH_GPERF_TOOLS
-# include <glib/gprintf.h>
-#endif
-
/* 60 seconds for worker's IO */
#define DEFAULT_WORKER_IO_TIMEOUT 60000
@@ -736,8 +732,9 @@ rspamd_controller_learn_fin_task (void *ud)
return TRUE;
}
/* Successful learn */
- msg_info ("<%s> learned message: %s",
+ msg_info ("<%s> learned message as %s: %s",
rspamd_inet_address_to_string (session->from_addr),
+ session->is_spam ? "spam" : "ham",
task->message_id);
rspamd_controller_send_string (conn_ent, "{\"success\":true}");