diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-10-08 16:27:15 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-10-08 16:35:42 +0100 |
commit | be2828419394df4339c793ce8526b5327da388d9 (patch) | |
tree | d2735974bc2b64710ed429828312b27392a17cc4 /src/libstat/stat_config.c | |
parent | 561594bb943bfdc9c9b888c1eacc2a6d34ca882b (diff) | |
download | rspamd-be2828419394df4339c793ce8526b5327da388d9.tar.gz rspamd-be2828419394df4339c793ce8526b5327da388d9.zip |
[Minor] More fixes to backend-less classifiers
Diffstat (limited to 'src/libstat/stat_config.c')
-rw-r--r-- | src/libstat/stat_config.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/libstat/stat_config.c b/src/libstat/stat_config.c index f153be737..8a953f47b 100644 --- a/src/libstat/stat_config.c +++ b/src/libstat/stat_config.c @@ -238,9 +238,13 @@ rspamd_stat_init (struct rspamd_config *cfg, struct event_base *ev_base) if (!(cl->cfg->flags & RSPAMD_FLAG_CLASSIFIER_NO_BACKEND)) { st->backend = bk; st->bkcf = bk->init (stat_ctx, cfg, st); + msg_debug_config ("added backend %s for symbol %s", + bk->name, stf->symbol); + } + else { + msg_debug_config ("added backend-less statfile for symbol %s", + stf->symbol); } - msg_debug_config ("added backend %s for symbol %s", - bk->name, stf->symbol); /* XXX: bad hack to pass statfiles configuration to cache */ if (cl->cache == NULL) { |