summaryrefslogtreecommitdiffstats
path: root/src/plugins/lua/elastic.lua
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/lua/elastic.lua')
-rw-r--r--src/plugins/lua/elastic.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/lua/elastic.lua b/src/plugins/lua/elastic.lua
index a344a4bb7..3fa73c022 100644
--- a/src/plugins/lua/elastic.lua
+++ b/src/plugins/lua/elastic.lua
@@ -207,10 +207,10 @@ local function check_elastic_server(cfg, ev_base, _)
local function http_callback(_, err, body, _)
if err == 200 then
local parser = ucl.parser()
- local res,err = parser:parse_string(body)
+ local res,ucl_err = parser:parse_string(body)
if not res then
rspamd_logger.infox(rspamd_config, 'failed to parse reply from %s: %s',
- plugins_url, err)
+ plugins_url, ucl_err)
enabled = false;
return
end