mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
etcdctl: Print healthy results to stdout, not stderr
Printing to stderr when there is no actual error is not intuitive and makes tool integration more difficult
This commit is contained in:
parent
bbe1e78e62
commit
e48ad568b9
@ -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