diff options
author | Vsevolod Stakhov <vsevolod@rspamd.com> | 2024-12-12 17:59:20 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rspamd.com> | 2024-12-12 17:59:45 +0000 |
commit | 887b84d1fa6235d4582d7468a662873e5edefe91 (patch) | |
tree | b0073fddbabc7168a0248b70f0fa6f834ddb28d5 | |
parent | 1e63b18528f33f89757709e1851fa3499e512e96 (diff) | |
download | rspamd-887b84d1fa6235d4582d7468a662873e5edefe91.tar.gz rspamd-887b84d1fa6235d4582d7468a662873e5edefe91.zip |
[Fix] Fix usage of the logging function
-rw-r--r-- | lualib/lua_redis.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lualib/lua_redis.lua b/lualib/lua_redis.lua index 43acfee65..7b85f44c4 100644 --- a/lualib/lua_redis.lua +++ b/lualib/lua_redis.lua @@ -1462,7 +1462,8 @@ local function exec_redis_script(id, params, callback, keys, args) callback(err, data) elseif string.match(err, 'NOSCRIPT') then -- Schedule restart - logger.infox(params.task, 'redis script %s is not loaded (NOSCRIPT returned), scheduling reload', + logger.infox(params.task or rspamd_config, + 'redis script %s is not loaded (NOSCRIPT returned), scheduling reload', script_description(script)) script.sha = nil if can_reload then |