Skip to content

Commit

Permalink
more logging is added for etcd members
Browse files Browse the repository at this point in the history
  • Loading branch information
sametd committed Jan 14, 2024
1 parent 3e5c0de commit da64473
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,10 @@ def metric(self):
message = "Cluster status is nominal"

# first retrieve the member size
cluster_size = self.cluster_size(self.member_urls[0]) # any of the member should give the same info
cluster_size = self.cluster_size(self.member_urls[0])
logger.debug(f"selected member url: {self.member_urls[0]}") # any of the member should give the same info
if cluster_size != self.req_mem_count:
logger.debug(f"cluster size: {cluster_size}, required: {self.req_mem_count}, url: {self.member_urls[0]}")
status = 2
if cluster_size:
message = f"Cluster size is {cluster_size}"
Expand Down

0 comments on commit da64473

Please sign in to comment.