aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/lua/phishing.lua
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-09-01 12:23:46 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-09-01 12:23:46 +0100
commitf8fbf1dd71c081539865c2eddb14a71f10c26fe2 (patch)
treee763ff39a2dc6f1e7d1695ea7264db59eeb4e431 /src/plugins/lua/phishing.lua
parent0b22db5cea02baf95628693e8501c89c4328cc80 (diff)
downloadrspamd-f8fbf1dd71c081539865c2eddb14a71f10c26fe2.tar.gz
rspamd-f8fbf1dd71c081539865c2eddb14a71f10c26fe2.zip
Update logging in lua modules.
Diffstat (limited to 'src/plugins/lua/phishing.lua')
-rw-r--r--src/plugins/lua/phishing.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/lua/phishing.lua b/src/plugins/lua/phishing.lua
index 964d3e66d..1def285e8 100644
--- a/src/plugins/lua/phishing.lua
+++ b/src/plugins/lua/phishing.lua
@@ -58,7 +58,7 @@ local function phishing_cb(task)
-- Use distance to penalize the total weight
weight = util.tanh(3 * (1 - dist + 0.1))
end
- rspamd_logger.debugx("distance: %1 -> %2: %3", tld, ptld, dist)
+ rspamd_logger.debugx(task, "distance: %1 -> %2: %3", tld, ptld, dist)
if #redirector_domains > 0 then
for _,rule in ipairs(redirector_domains) do
@@ -109,10 +109,10 @@ local function phishing_map(mapname, phishmap)
local rule = {symbol = sym, map = rmap}
table.insert(phishmap, rule)
else
- rspamd_logger.info('cannot add map: ' .. map .. ' for symbol: ' .. sym)
+ rspamd_logger.infox(rspamd_config, 'cannot add map: ' .. map .. ' for symbol: ' .. sym)
end
else
- rspamd_logger.info(mapname .. ' option must be in format <map>:<symbol>')
+ rspamd_logger.infox(rspamd_config, mapname .. ' option must be in format <map>:<symbol>')
end
end
end