]> source.dussan.org Git - rspamd.git/commitdiff
Reduce log severity for ratelimit missing servers
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 19 Jan 2016 14:32:49 +0000 (14:32 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 19 Jan 2016 14:32:49 +0000 (14:32 +0000)
src/plugins/lua/ratelimit.lua

index 2c80c01398a23a7a05b291076490cd492386dd34..2eb7f30a73a8bb6049ccb84321f7375faa62b4a9 100644 (file)
@@ -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)