if (reconfig) {
(void)mod->module_reconfig_func (cfg);
- msg_debug_config ("reconfig of %s", mod->name);
+ msg_info_config ("reconfig of %s", mod->name);
}
else {
(void)mod->module_config_func (cfg);
/* Save some variables */
tmp_cfg->cfg_name = cfg_file;
- if (!load_rspamd_config (rspamd_main, tmp_cfg, FALSE, RSPAMD_CONFIG_INIT_VALIDATE)) {
+ if (!load_rspamd_config (rspamd_main, tmp_cfg, TRUE,
+ RSPAMD_CONFIG_INIT_VALIDATE|RSPAMD_CONFIG_INIT_SYMCACHE)) {
rspamd_set_logger (rspamd_main->cfg, g_quark_try_string (
"main"), rspamd_main);
msg_err_main ("cannot parse new config file, revert to old one");
rspamd_main->cfg->log_level = G_LOG_LEVEL_DEBUG;
}
- rspamd_init_filters (rspamd_main->cfg, TRUE);
msg_info_main ("config has been reread successfully");
}
}