From fce2e75b6c463e03de1af46fc268ce557c01b879 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Tue, 19 Jan 2016 14:32:49 +0000 Subject: [PATCH] Reduce log severity for ratelimit missing servers --- src/plugins/lua/ratelimit.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/lua/ratelimit.lua b/src/plugins/lua/ratelimit.lua index 2c80c0139..2eb7f30a7 100644 --- a/src/plugins/lua/ratelimit.lua +++ b/src/plugins/lua/ratelimit.lua @@ -405,11 +405,11 @@ if opts then end if not opts['servers'] then - rspamd_logger.errx(rspamd_config, 'no servers are specified') + rspamd_logger.infox(rspamd_config, 'no servers are specified, disabling module') else upstreams = upstream_list.create(rspamd_config, opts['servers'], default_port) if not upstreams then - rspamd_logger.errx(rspamd_config, 'no servers are specified') + rspamd_logger.infox(rspamd_config, 'no servers are specified, disabling module') else if not ratelimit_symbol then rspamd_config:register_pre_filter(rate_test) -- 2.39.5