Skip to content

Commit

Permalink
Display etcd member ID in hex
Browse files Browse the repository at this point in the history
This is usually the way etcdctl displays member IDs. This makes it more
intuitive and easier to correlate with etcdctl's output.

Signed-off-by: Tom Wieczorek <[email protected]>
(cherry picked from commit a8ce70b)
  • Loading branch information
twz123 authored and github-actions[bot] committed Mar 1, 2024
1 parent 6a63dc9 commit dfb5bfd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/etcd/leave.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,13 @@ func etcdLeaveCmd() *cobra.Command {
if err := etcdClient.DeleteMember(ctx, peerID); err != nil {
logrus.
WithField("peerURL", peerURL).
WithField("peerID", peerID).
WithField("peerID", fmt.Sprintf("%x", peerID)).
Errorf("Failed to delete node from cluster")
return err
}

logrus.
WithField("peerID", peerID).
WithField("peerID", fmt.Sprintf("%x", peerID)).
Info("Successfully deleted")
return nil
},
Expand Down

0 comments on commit dfb5bfd

Please sign in to comment.