commit dce9dda: [Minor] Fix logging
Vsevolod Stakhov
vsevolod at highsecure.ru
Sat Aug 17 08:14:03 UTC 2019
Author: Vsevolod Stakhov
Date: 2019-08-17 09:10:24 +0100
URL: https://github.com/rspamd/rspamd/commit/dce9dda76266bc2627e9cb5fe6b5ac46a28d2cd2 (HEAD -> master)
[Minor] Fix logging
---
src/plugins/lua/settings.lua | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/plugins/lua/settings.lua b/src/plugins/lua/settings.lua
index 237ed41be..e28473b5b 100644
--- a/src/plugins/lua/settings.lua
+++ b/src/plugins/lua/settings.lua
@@ -105,8 +105,10 @@ local function check_query_settings(task)
local parser = ucl.parser()
local res,err = parser:parse_string(tostring(query_set))
if res then
- rspamd_logger.warnx(task, "both settings-id '%s' and settings headers are presented, ignore settings-id; ",
- tostring(settings_id))
+ if settings_id then
+ rspamd_logger.warnx(task, "both settings-id '%s' and settings headers are presented, ignore settings-id; ",
+ tostring(settings_id))
+ end
local settings_obj = parser:get_object()
apply_settings(task, settings_obj, nil)
More information about the Commits
mailing list