From 31604b43d13c93bc730b07227ed0c39a7b3314cd Mon Sep 17 00:00:00 2001 From: Paul Holzinger Date: Tue, 14 Sep 2021 11:27:12 +0200 Subject: Revert "logs: adjust handling around partial log messages" This reverts commit 21f396de6f5024abbf6edd2ca63edcb1525eefcc. Changing the log endpoint is a breaking change we should not do in 3.4. [NO TESTS NEEDED] Signed-off-by: Paul Holzinger --- libpod/logs/log.go | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'libpod/logs') diff --git a/libpod/logs/log.go b/libpod/logs/log.go index a584de0ee..1a0223edc 100644 --- a/libpod/logs/log.go +++ b/libpod/logs/log.go @@ -251,19 +251,11 @@ func (l *LogLine) Write(stdout io.Writer, stderr io.Writer, logOpts *LogOptions) switch l.Device { case "stdout": if stdout != nil { - if l.Partial() { - fmt.Fprint(stdout, l.String(logOpts)) - } else { - fmt.Fprintln(stdout, l.String(logOpts)) - } + fmt.Fprintln(stdout, l.String(logOpts)) } case "stderr": if stderr != nil { - if l.Partial() { - fmt.Fprint(stderr, l.String(logOpts)) - } else { - fmt.Fprintln(stderr, l.String(logOpts)) - } + fmt.Fprintln(stderr, l.String(logOpts)) } default: // Warn the user if the device type does not match. Most likely the file is corrupted. -- cgit v1.2.3-54-g00ecf