summaryrefslogtreecommitdiffstats
path: root/src/plugins/lua/elastic.lua
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-03-09 12:16:30 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-03-09 12:16:30 +0000
commitddc8561f295d13f1d5274a4e5ef0c8e95fcc6d1f (patch)
tree1f0e304e9bd52d65af2526cab82ffb386eb51831 /src/plugins/lua/elastic.lua
parent6e497db7986a7051a093c01398ad052abdf5404d (diff)
downloadrspamd-ddc8561f295d13f1d5274a4e5ef0c8e95fcc6d1f.tar.gz
rspamd-ddc8561f295d13f1d5274a4e5ef0c8e95fcc6d1f.zip
[Minor] Silence bloody luacheck
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