]> source.dussan.org Git - rspamd.git/commitdiff
fix variables for ucl errors
authorDmitriy Alekseev <1865999+dragoangel@users.noreply.github.com>
Thu, 17 Oct 2024 12:42:02 +0000 (14:42 +0200)
committerDmitriy Alekseev <1865999+dragoangel@users.noreply.github.com>
Thu, 17 Oct 2024 12:42:02 +0000 (14:42 +0200)
src/plugins/lua/elastic.lua

index ae7e577f34b0d15ab777ca7795de6833892fdc7f..d4a5fdf8517affb0577eaa9d95943eb5e52b7f63 100644 (file)
@@ -833,12 +833,12 @@ local function get_index_policy(cfg, ev_base, upstream, host, policy_url, index_
             end
           end
         else
-          rspamd_logger.errx(rspamd_config, 'failed to parse our index policy for elastic: %s', ucl_err)
+          rspamd_logger.errx(rspamd_config, 'failed to parse our index policy for elastic: %s', op_ucl_err)
           upstream:fail()
           handle_error('parse our', 'index_policy', settings['limits']['max_fail'])
         end
       else
-        rspamd_logger.errx(rspamd_config, 'failed to parse remote index policy from elastic: %s', ucl_err)
+        rspamd_logger.errx(rspamd_config, 'failed to parse remote index policy from elastic: %s', rp_ucl_err)
         upstream:fail()
         handle_error('parse remote', 'index_policy', settings['limits']['max_fail'])
       end