commit 8dd05bd: [Minor] Pet luacheck
Vsevolod Stakhov
vsevolod at rspamd.com
Mon May 29 19:49:03 UTC 2023
Author: Vsevolod Stakhov
Date: 2023-05-29 20:46:44 +0100
URL: https://github.com/rspamd/rspamd/commit/8dd05bdf733925bc6c3519704c9b2a4e4c850788 (HEAD -> master)
[Minor] Pet luacheck
---
src/plugins/lua/multimap.lua | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/plugins/lua/multimap.lua b/src/plugins/lua/multimap.lua
index 818a58701..2cc878ec8 100644
--- a/src/plugins/lua/multimap.lua
+++ b/src/plugins/lua/multimap.lua
@@ -89,7 +89,7 @@ local function parse_multimap_value(parse_rule, p_ret)
return true,sym,score,opts
else
if p_ret ~= '' then
- rspamd_logger.infox(task, '%s: cannot parse string "%s"',
+ rspamd_logger.infox(rspamd_config, '%s: cannot parse string "%s"',
parse_rule.symbol, p_ret)
end
@@ -1011,7 +1011,7 @@ local function multimap_on_load_gen(rule)
lua_util.debugm(N, rspamd_config, "loaded map object for rule %s", rule['symbol'])
local known_symbols = {}
rule.map_obj:foreach(function(key, value)
- local r,symbol,score,_opts = parse_multimap_value(rule, value)
+ local r,symbol,score,_ = parse_multimap_value(rule, value)
if r and symbol and not known_symbols[symbol] then
lua_util.debugm(N, rspamd_config, "%s: adding new symbol %s (score = %s), triggered by %s",
More information about the Commits
mailing list