aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstat/stat_process.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2017-02-28 12:15:40 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2017-02-28 12:15:40 +0000
commitba83098bc89cfa4489f8e9a0dde60bec396ae967 (patch)
treeb45472664d0c79d84fd7c9a23aa9f8d15c619938 /src/libstat/stat_process.c
parentac150373d6ed5ccf9f273d35a36c2f4f1062f3ed (diff)
downloadrspamd-ba83098bc89cfa4489f8e9a0dde60bec396ae967.tar.gz
rspamd-ba83098bc89cfa4489f8e9a0dde60bec396ae967.zip
[Minor] Add debug message when bayes symbol is disabled
Diffstat (limited to 'src/libstat/stat_process.c')
-rw-r--r--src/libstat/stat_process.c3
1 files changed, 3 insertions, 0 deletions
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;
}
}