]> source.dussan.org Git - rspamd.git/commitdiff
Small tweaks to logging of learned messages.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 21 Apr 2015 15:28:52 +0000 (16:28 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 21 Apr 2015 15:28:52 +0000 (16:28 +0100)
src/controller.c

index 4265000a4b317494b65a29ac8c6c82429be30798..ece5c86b0ce81b1d476adae13ae0fffddd24c7d3 100644 (file)
 #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}");