浏览代码

don't clear line when navigation is disabled

Signed-off-by: Nicolas De Loof <[email protected]>
Nicolas De Loof 1 年之前
父节点
当前提交
ca734ce565
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      cmd/formatter/logs.go

+ 3 - 1
cmd/formatter/logs.go

@@ -110,7 +110,9 @@ func (l *logConsumer) write(w io.Writer, container, message string) {
 		p := l.getPresenter(container)
 		timestamp := time.Now().Format(jsonmessage.RFC3339NanoFixed)
 		for _, line := range strings.Split(message, "\n") {
-			ClearLine()
+			if KeyboardManager != nil {
+				ClearLine()
+			}
 			if l.timestamp {
 				fmt.Fprintf(w, "%s%s%s\n", p.prefix, timestamp, line)
 			} else {