]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Fix] Fix usage of the logging function
authorVsevolod Stakhov <vsevolod@rspamd.com>
Thu, 12 Dec 2024 17:59:20 +0000 (17:59 +0000)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Thu, 12 Dec 2024 17:59:45 +0000 (17:59 +0000)
lualib/lua_redis.lua

index 43acfee6587cda67452efcf08eb062ccaf4636c3..7b85f44c4c7caf55db7384580efa5ce58dd0397e 100644 (file)
@@ -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