From: Vsevolod Stakhov Date: Tue, 28 Feb 2017 12:15:40 +0000 (+0000) Subject: [Minor] Add debug message when bayes symbol is disabled X-Git-Tag: 1.5.0~17 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=ba83098bc89cfa4489f8e9a0dde60bec396ae967;p=rspamd.git [Minor] Add debug message when bayes symbol is disabled --- 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; } }