浏览代码

ctlv3: add missing newline in EndpointHealth

To make the output consistent with the output before #9540.
Jingyi Hu 7 年之前
父节点
当前提交
17e10fe13f
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      etcdctl/ctlv3/command/printer_simple.go

+ 1 - 1
etcdctl/ctlv3/command/printer_simple.go

@@ -152,7 +152,7 @@ func (s *simplePrinter) EndpointHealth(hs []epHealth) {
 		if h.Error == "" {
 		if h.Error == "" {
 			fmt.Fprintf(os.Stderr, "%s is healthy: successfully committed proposal: took = %v\n", h.Ep, h.Took)
 			fmt.Fprintf(os.Stderr, "%s is healthy: successfully committed proposal: took = %v\n", h.Ep, h.Took)
 		} else {
 		} else {
-			fmt.Fprintf(os.Stderr, "%s is unhealthy: failed to commit proposal: %v", h.Ep, h.Error)
+			fmt.Fprintf(os.Stderr, "%s is unhealthy: failed to commit proposal: %v\n", h.Ep, h.Error)
 		}
 		}
 	}
 	}
 }
 }