aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/lua/settings.lua
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-09-14 18:47:45 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-09-14 18:47:45 +0100
commit03b7a344fd6ab43449763f6c75cafffb1228fe65 (patch)
treef1c30b7e16c679d0e866f6194227d4861b2f82fd /src/plugins/lua/settings.lua
parent1c5d8cfc88fbbcbb35d5e6cfbda6222170424579 (diff)
downloadrspamd-03b7a344fd6ab43449763f6c75cafffb1228fe65.tar.gz
rspamd-03b7a344fd6ab43449763f6c75cafffb1228fe65.zip
Unbreak logging in the settings module.
Diffstat (limited to 'src/plugins/lua/settings.lua')
-rw-r--r--src/plugins/lua/settings.lua10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/plugins/lua/settings.lua b/src/plugins/lua/settings.lua
index 951893acf..80792ce2b 100644
--- a/src/plugins/lua/settings.lua
+++ b/src/plugins/lua/settings.lua
@@ -255,7 +255,7 @@ local function check_settings(task)
end
-- Process settings based on their priority
-local function process_settings_table(task, tbl)
+local function process_settings_table(tbl)
local get_priority = function(elt)
local pri_tonum = function(p)
if p then
@@ -300,7 +300,7 @@ local function process_settings_table(task, tbl)
out[1] = res
out[2] = 0
else
- rspamd_logger.errx(task, "bad IP address: " .. ip)
+ rspamd_logger.errx(rspamd_config, "bad IP address: " .. ip)
return nil
end
else
@@ -311,7 +311,7 @@ local function process_settings_table(task, tbl)
out[1] = res
out[2] = mask
else
- rspamd_logger.errx(task, "bad IP address: " .. ip)
+ rspamd_logger.errx(rspamd_config, "bad IP address: " .. ip)
return nil
end
end
@@ -336,7 +336,7 @@ local function process_settings_table(task, tbl)
if re then
out['regexp'] = re
else
- rspamd_logger.errx(task, "bad regexp: " .. addr)
+ rspamd_logger.errx(rspamd_config, "bad regexp: " .. addr)
return nil
end
@@ -421,7 +421,7 @@ local function process_settings_table(task, tbl)
end
return false
end, tbl)
-
+
-- clear all settings
max_pri = 0
local nrules = 0