mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
Merge pull request #11322 from jcalvert/etcdctl_healthoutput
etcdctl: Print healthy results to stdout, not stderr
This commit is contained in:
commit
d05459ed5b
@ -150,7 +150,7 @@ func (s *simplePrinter) MemberList(resp v3.MemberListResponse) {
|
||||
func (s *simplePrinter) EndpointHealth(hs []epHealth) {
|
||||
for _, h := range hs {
|
||||
if h.Error == "" {
|
||||
fmt.Fprintf(os.Stderr, "%s is healthy: successfully committed proposal: took = %v\n", h.Ep, h.Took)
|
||||
fmt.Printf("%s is healthy: successfully committed proposal: took = %v\n", h.Ep, h.Took)
|
||||
} else {
|
||||
fmt.Fprintf(os.Stderr, "%s is unhealthy: failed to commit proposal: %v\n", h.Ep, h.Error)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user