From e7dea536e351caa1b97baa3dd5c298ae30461242 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Thu, 1 Aug 2024 15:21:28 +0100 Subject: [PATCH] [Minor] Fix logging --- lualib/lua_redis.lua | 6 +++--- 1 file 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 -- 2.39.5