diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-11-27 13:43:32 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-11-27 13:43:32 +0000 |
commit | 085b3707cbddc9601b3dd8f5953c74d299cac2d4 (patch) | |
tree | f85522079cee2d08885ee9c02b8bed0135fe80ef /src/plugins/fuzzy_check.c | |
parent | 86bb48e4453122a2f62c8381d227daf721657845 (diff) | |
download | rspamd-085b3707cbddc9601b3dd8f5953c74d299cac2d4.tar.gz rspamd-085b3707cbddc9601b3dd8f5953c74d299cac2d4.zip |
Add informational messages about modules initialization
Diffstat (limited to 'src/plugins/fuzzy_check.c')
-rw-r--r-- | src/plugins/fuzzy_check.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/plugins/fuzzy_check.c b/src/plugins/fuzzy_check.c index 59b36a4e5..1a9c9e0ed 100644 --- a/src/plugins/fuzzy_check.c +++ b/src/plugins/fuzzy_check.c @@ -501,7 +501,7 @@ gint fuzzy_check_module_config (struct rspamd_config *cfg) { const ucl_object_t *value, *cur; - gint res = TRUE, cb_id; + gint res = TRUE, cb_id, nrules = 0; if (!rspamd_config_is_module_enabled (cfg, "fuzzy_check")) { return TRUE; @@ -590,6 +590,7 @@ fuzzy_check_module_config (struct rspamd_config *cfg) LL_FOREACH (value, cur) { fuzzy_parse_rule (cfg, cur, cb_id); + nrules ++; } } @@ -597,6 +598,9 @@ fuzzy_check_module_config (struct rspamd_config *cfg) msg_warn_config ("fuzzy module is enabled but no rules are defined"); } + msg_info_config ("init internal fuzzy_check module, %d rules loaded", + nrules); + return res; } |