Skip to content

Commit

Permalink
chore: the error_log level should be when etcd compacts
Browse files Browse the repository at this point in the history
  • Loading branch information
monkeyDluffy6017 committed Feb 26, 2024
1 parent 8324821 commit 25a6072
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apisix/core/config_etcd.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 25a6072

Please sign in to comment.