Skip to content

Commit

Permalink
don't clear line when navigation is disabled
Browse files Browse the repository at this point in the history
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
  • Loading branch information
ndeloof committed Apr 16, 2024
1 parent c9e070f commit ca734ce
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmd/formatter/logs.go
Expand Up @@ -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 {
Expand Down

0 comments on commit ca734ce

Please sign in to comment.