summaryrefslogtreecommitdiff
path: root/libpod/container_log_linux.go
diff options
context:
space:
mode:
authorDaniel J Walsh <dwalsh@redhat.com>2022-04-13 08:34:02 -0400
committerDaniel J Walsh <dwalsh@redhat.com>2022-04-13 14:07:15 -0400
commit63c38b99f40224c46ecf609feba05cd3bc5c4da2 (patch)
tree0a5599b3d3d20bfc121a7294aad339ceb65d0e71 /libpod/container_log_linux.go
parentb962fb9f2929cedbacfdaaf1574300acaa1e8a00 (diff)
downloadpodman-63c38b99f40224c46ecf609feba05cd3bc5c4da2.tar.gz
podman-63c38b99f40224c46ecf609feba05cd3bc5c4da2.tar.bz2
podman-63c38b99f40224c46ecf609feba05cd3bc5c4da2.zip
Fix --tail log on restart problem
--tail=1 is not working f you restart a container with journald logging. We see the exit status and then call into the logging a second time causing all of the logs to print. Removing the tail log on exited seems to fix the problem. Fixes: https://github.com/containers/podman/issues/13098 Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Diffstat (limited to 'libpod/container_log_linux.go')
-rw-r--r--libpod/container_log_linux.go3
1 files changed, 0 insertions, 3 deletions
diff --git a/libpod/container_log_linux.go b/libpod/container_log_linux.go
index d96647e51..deb726526 100644
--- a/libpod/container_log_linux.go
+++ b/libpod/container_log_linux.go
@@ -209,9 +209,6 @@ func (c *Container) readFromJournal(ctx context.Context, options *logs.LogOption
containerCouldBeLogging = true
case events.Exited:
containerCouldBeLogging = false
- if doTail {
- doTailFunc()
- }
}
continue
}