Skip to content

Commit

Permalink
remove err logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Revolyssup committed Apr 12, 2024
1 parent 1860153 commit 5cdc0d7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions apisix/core/config_etcd.lua
Original file line number Diff line number Diff line change
Expand Up @@ -330,10 +330,11 @@ local function sync_data(self)

::waitdir::
local dir_res, err = waitdir(self.etcd_cli, self.key, self.prev_index + 1, self.timeout)
log.error("waitdir key: ", self.key, " prev_index: ", self.prev_index + 1)
log.error("res: ", json.delay_encode(dir_res, true))
log.info("waitdir key: ", self.key, " prev_index: ", self.prev_index + 1)
log.info("res: ", json.delay_encode(dir_res, true))
if not dir_res then
if err == "timeout" then
-- get latest uncompacted revision
local res, err = self.etcd_cli:get('/nonexisting',{
count_only = true,
range_end = "\0"
Expand All @@ -345,8 +346,7 @@ local function sync_data(self)
if res and res.body and res.body.header and res.body.header.revision then
rev = tonumber(res.body.header.revision)
end
log.error("GOT LATEST UNCOMPACTED REVISION ",rev)
log.error("updating "..self.prev_index.." to "..rev )
log.info("updating prev_index from "..self.prev_index.." to "..rev )
if rev then
if rev == self.prev_index then
goto fail
Expand All @@ -359,7 +359,7 @@ local function sync_data(self)
log.error("waitdir failed: ", err)
return false, err
end
log.error("waitdir success")
log.info("waitdir success")
local res = dir_res.body.node
local err_msg = dir_res.body.message
if err_msg then
Expand Down

0 comments on commit 5cdc0d7

Please sign in to comment.