summaryrefslogtreecommitdiff
path: root/libpod
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-10-02 14:24:53 -0400
committerGitHub <noreply@github.com>2020-10-02 14:24:53 -0400
commit1132bcfeb5a8dca56d99c50882abc6e7775ac897 (patch)
treef1ebd1a12a7b24b42e2d6cc41bca791c4f59ffea /libpod
parentb58980a43ccfcef5134274c3963bf68cc51a4983 (diff)
parentc0d1954663fbf56076d1e75da396aa78016d623b (diff)
downloadpodman-1132bcfeb5a8dca56d99c50882abc6e7775ac897.tar.gz
podman-1132bcfeb5a8dca56d99c50882abc6e7775ac897.tar.bz2
podman-1132bcfeb5a8dca56d99c50882abc6e7775ac897.zip
Merge pull request #7893 from ashley-cui/journald
Fix Podman logs reading journald
Diffstat (limited to 'libpod')
-rw-r--r--libpod/container_log_linux.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/libpod/container_log_linux.go b/libpod/container_log_linux.go
index 73c2df76e..d895171cf 100644
--- a/libpod/container_log_linux.go
+++ b/libpod/container_log_linux.go
@@ -33,7 +33,7 @@ const (
func (c *Container) readFromJournal(ctx context.Context, options *logs.LogOptions, logChannel chan *logs.LogLine) error {
var config journal.JournalReaderConfig
if options.Tail < 0 {
- config.NumFromTail = math.MaxUint64
+ config.NumFromTail = 0
} else {
config.NumFromTail = uint64(options.Tail)
}