From 03b7a344fd6ab43449763f6c75cafffb1228fe65 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Mon, 14 Sep 2015 18:47:45 +0100 Subject: [PATCH] Unbreak logging in the settings module. --- src/plugins/lua/settings.lua | 10 +++++----- 1 file 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 -- 2.39.5