]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Add debug message when bayes symbol is disabled
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 28 Feb 2017 12:15:40 +0000 (12:15 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 28 Feb 2017 12:15:40 +0000 (12:15 +0000)
src/libstat/stat_process.c

index d71184f822da028f77a2943dd291d1501d261a6f..9c93de8ff38e646a52a87bf96374ebf87b6782a0 100644 (file)
@@ -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;
                                }
                        }