From 25a6072eee25176620d3c08be2465f14f0e87d73 Mon Sep 17 00:00:00 2001 From: monkeyDluffy6017 Date: Mon, 26 Feb 2024 16:30:25 +0800 Subject: [PATCH] chore: the error_log level should be when etcd compacts --- apisix/core/config_etcd.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apisix/core/config_etcd.lua b/apisix/core/config_etcd.lua index eebf74eee71e..c1ea323db9da 100644 --- a/apisix/core/config_etcd.lua +++ b/apisix/core/config_etcd.lua @@ -227,7 +227,7 @@ local function do_run_watch(premature) log.warn("watch canceled by etcd, res: ", inspect(res)) if res.result.compact_revision then watch_ctx.rev = tonumber(res.result.compact_revision) - log.warn("etcd compacted, compact_revision=", watch_ctx.rev) + log.error("etcd compacted, compact_revision=", watch_ctx.rev) produce_res(nil, "compacted") end cancel_watch(http_cli) @@ -629,7 +629,7 @@ local function sync_data(self) if not dir_res then if err == "compacted" then self.need_reload = true - log.warn("waitdir [", self.key, "] err: ", err, + log.error("waitdir [", self.key, "] err: ", err, ", will read the configuration again via readdir") return false end