aboutsummaryrefslogtreecommitdiffstats
path: root/lualib
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rspamd.com>2024-08-01 15:21:28 +0100
committerVsevolod Stakhov <vsevolod@rspamd.com>2024-08-01 15:21:28 +0100
commite7dea536e351caa1b97baa3dd5c298ae30461242 (patch)
treeb53cca4e17ac8d9272e423282fed92ff4d3d3c82 /lualib
parentd3df6d1390942be2e6e49fc33847e9b3e6db59fa (diff)
downloadrspamd-e7dea536e351caa1b97baa3dd5c298ae30461242.tar.gz
rspamd-e7dea536e351caa1b97baa3dd5c298ae30461242.zip
[Minor] Fix logging
Diffstat (limited to 'lualib')
-rw-r--r--lualib/lua_redis.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/lualib/lua_redis.lua b/lualib/lua_redis.lua
index 615e4d871..2c77c100a 100644
--- a/lualib/lua_redis.lua
+++ b/lualib/lua_redis.lua
@@ -1316,10 +1316,9 @@ local function load_script_taskless(script, cfg, ev_base, is_write)
else
opt.upstream:ok()
logger.infox(cfg,
- "uploaded redis script %s to %s %s %s, sha: %s",
+ "uploaded redis script %s to %s, sha: %s",
script_description(script),
opt.upstream:get_addr():to_string(true),
- script.filename and "from file" or "with id", script.filename or script.id,
data)
script.sha = data -- We assume that sha is the same on all servers
script.servers_ready[idx] = "done"
@@ -1514,7 +1513,8 @@ local function exec_redis_script(id, params, callback, keys, args)
do_call(true)
else
-- Delayed until scripts are loaded
- logger.infox(params.task, 'redis script %s is not loaded, trying to load', script_description(script))
+ logger.infox(params.task or rspamd_config, 'redis script %s is not loaded, trying to load',
+ script_description(script))
if not params.task then
table.insert(script.waitq, do_call)
else