Skip to content

Commit dd8bda3

Browse files
authored
chore: remove unnecessary log for health check retry (#135)
1 parent 218b692 commit dd8bda3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/resty/etcd/v3.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,10 +145,10 @@ local function _request_uri(self, method, uri, opts, timeout, ignore_auth)
145145
for _ = 1, max_retry do
146146
res, err = http_request_uri(self, http_cli, method, uri, body, headers, keepalive)
147147
if err then
148-
utils.log_warn(err .. ". Retrying")
149148
if err == "has no healthy etcd endpoint available" then
150149
return nil, err
151150
end
151+
utils.log_warn(err .. ". Retrying")
152152
else
153153
break
154154
end

0 commit comments

Comments
 (0)