aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-05-10 15:02:39 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-05-10 15:02:39 +0100
commit42d0e0d659f70d26c7132d79ef1e2a9f26c597a7 (patch)
tree8c52f927f4170f4fb10db47a4969b75dbf5fe830 /src/plugins
parentd0c01232f3a5284e9893a73794c6a8b1181189ff (diff)
downloadrspamd-42d0e0d659f70d26c7132d79ef1e2a9f26c597a7.tar.gz
rspamd-42d0e0d659f70d26c7132d79ef1e2a9f26c597a7.zip
[Minor] Allow redis key handlers to return nil
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/lua/settings.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/lua/settings.lua b/src/plugins/lua/settings.lua
index 3ebf83f99..e1a4cef74 100644
--- a/src/plugins/lua/settings.lua
+++ b/src/plugins/lua/settings.lua
@@ -28,6 +28,7 @@ local lua_squeeze = require "lua_squeeze_rules"
local redis_params
local settings = {}
+local N = "settings"
local settings_ids = {}
local settings_initialized = false
local max_pri = 0
@@ -665,7 +666,7 @@ local function gen_redis_callback(handler, id)
end
if not key then
- rspamd_logger.errx(rspamd_config, 'Cannot execute handler number %s', id)
+ rspamd_logger.debugm(N, task, 'handler number %s returned nil', id)
return
end