From 0d79446288624d8a940cac2ddae9eee1a15779bc Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Tue, 29 May 2018 18:17:28 +0100 Subject: [PATCH] [Minor] Fix logging --- src/libserver/cfg_rcl.c | 2 +- src/rspamadm/commands.c | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/libserver/cfg_rcl.c b/src/libserver/cfg_rcl.c index ad6bbe8a3..48ddc50d8 100644 --- a/src/libserver/cfg_rcl.c +++ b/src/libserver/cfg_rcl.c @@ -3495,6 +3495,7 @@ rspamd_config_read (struct rspamd_config *cfg, const gchar *filename, /* Transform config if needed */ rspamd_rcl_maybe_apply_lua_transform (cfg); + rspamd_config_calculate_cksum (cfg); if (!rspamd_rcl_parse (top, cfg, cfg, cfg->cfg_pool, cfg->rcl_obj, &err)) { msg_err_config ("rcl parse error: %e", err); @@ -3502,7 +3503,6 @@ rspamd_config_read (struct rspamd_config *cfg, const gchar *filename, return FALSE; } - rspamd_config_calculate_cksum (cfg); cfg->lang_det = rspamd_language_detector_init (cfg); return TRUE; diff --git a/src/rspamadm/commands.c b/src/rspamadm/commands.c index 87b953050..306938697 100644 --- a/src/rspamadm/commands.c +++ b/src/rspamadm/commands.c @@ -219,8 +219,6 @@ rspamadm_fill_lua_commands (lua_State *L, GPtrArray *dest) lua_gettable (L, -2); } else { - msg_err ("bad return type in %s: %s", path, - lua_typename (L, lua_type (L, -1))); continue; /* Something goes wrong, huh */ } -- 2.39.5