aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/regexp.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-11-27 13:43:32 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-11-27 13:43:32 +0000
commit085b3707cbddc9601b3dd8f5953c74d299cac2d4 (patch)
treef85522079cee2d08885ee9c02b8bed0135fe80ef /src/plugins/regexp.c
parent86bb48e4453122a2f62c8381d227daf721657845 (diff)
downloadrspamd-085b3707cbddc9601b3dd8f5953c74d299cac2d4.tar.gz
rspamd-085b3707cbddc9601b3dd8f5953c74d299cac2d4.zip
Add informational messages about modules initialization
Diffstat (limited to 'src/plugins/regexp.c')
-rw-r--r--src/plugins/regexp.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/plugins/regexp.c b/src/plugins/regexp.c
index 819bc762e..9535ab1e6 100644
--- a/src/plugins/regexp.c
+++ b/src/plugins/regexp.c
@@ -111,7 +111,7 @@ regexp_module_config (struct rspamd_config *cfg)
struct regexp_module_item *cur_item;
const ucl_object_t *sec, *value, *elt;
ucl_object_iter_t it = NULL;
- gint res = TRUE, id;
+ gint res = TRUE, id, nrules = 0;
if (!rspamd_config_is_module_enabled (cfg, "regexp")) {
return TRUE;
@@ -215,6 +215,7 @@ regexp_module_config (struct rspamd_config *cfg)
process_regexp_item,
cur_item,
SYMBOL_TYPE_NORMAL, -1);
+ nrules ++;
elt = ucl_object_find_key (value, "condition");
@@ -266,6 +267,8 @@ regexp_module_config (struct rspamd_config *cfg)
}
}
+ msg_info_config ("init internal regexp module, %d regexp rules loaded", nrules);
+
return res;
}