From ba83098bc89cfa4489f8e9a0dde60bec396ae967 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Tue, 28 Feb 2017 12:15:40 +0000 Subject: [PATCH] [Minor] Add debug message when bayes symbol is disabled --- src/libstat/stat_process.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/libstat/stat_process.c b/src/libstat/stat_process.c index d71184f82..9c93de8ff 100644 --- a/src/libstat/stat_process.c +++ b/src/libstat/stat_process.c @@ -454,9 +454,12 @@ rspamd_stat_classifiers_process (struct rspamd_stat_ctx *st_ctx, for (j = 0; j < cl->statfiles_ids->len; j++) { id = g_array_index (cl->statfiles_ids, gint, j); bk_run = g_ptr_array_index (task->stat_runtimes, id); + st = g_ptr_array_index (st_ctx->statfiles, id); if (bk_run == NULL) { skip = TRUE; + msg_debug_task ("disable classifier %s as statfile symbol %s is disabled", + cl->cfg->name, st->stcf->symbol); break; } } -- 2.39.5