]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Minor] Fix some issues in dynamic_conf
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 1 Nov 2016 11:32:44 +0000 (11:32 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 1 Nov 2016 11:32:44 +0000 (11:32 +0000)
src/plugins/lua/dynamic_conf.lua

index 4c975b78ccda52b2db77699288e7097731624ef1..254b93f1f2806223bc22061a3d60c772635fcb73 100644 (file)
@@ -171,7 +171,7 @@ local function update_dynamic_conf(cfg, ev_base, recv)
     if err then
       rspamd_logger.errx(cfg, "cannot save dynamic conf version to redis: %s", err)
     else
-      rspamd_logger.info(cfg, "saved dynamic conf version: %s", data)
+      rspamd_logger.infox(cfg, "saved dynamic conf version: %s", data)
     end
   end
   local function redis_data_set_cb(err, data)
@@ -288,7 +288,7 @@ end
 local function add_dynamic_symbol(cfg, sym, score)
   local add = false
   if not cur_settings.data then
-    rspamd_logger.errx(cfg, 'cannot add symbol as no dynamic conf is loaded')
+    cur_settings.data = {}
   end
 
   if not cur_settings.data.scores then