diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-05-10 15:02:39 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-05-10 15:02:39 +0100 |
commit | 42d0e0d659f70d26c7132d79ef1e2a9f26c597a7 (patch) | |
tree | 8c52f927f4170f4fb10db47a4969b75dbf5fe830 /src/plugins | |
parent | d0c01232f3a5284e9893a73794c6a8b1181189ff (diff) | |
download | rspamd-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.lua | 3 |
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 |