From: Vsevolod Stakhov Date: Sat, 17 Aug 2019 08:10:24 +0000 (+0100) Subject: [Minor] Fix logging X-Git-Tag: 2.0~400 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=dce9dda76266bc2627e9cb5fe6b5ac46a28d2cd2;p=rspamd.git [Minor] Fix logging --- 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)