diff options
author | Ashley Cui <acui@redhat.com> | 2021-02-15 15:37:45 -0500 |
---|---|---|
committer | Ashley Cui <acui@redhat.com> | 2021-02-19 02:21:12 -0500 |
commit | f2d057c943957dce99b49d291c2e1b96af31a9e5 (patch) | |
tree | bb8b5d4c555fa7c411c217dcad686e3002b9333f | |
parent | fbc50e5285e960e6533e64a768dd4fb5615c8f7e (diff) | |
download | podman-f2d057c943957dce99b49d291c2e1b96af31a9e5.tar.gz podman-f2d057c943957dce99b49d291c2e1b96af31a9e5.tar.bz2 podman-f2d057c943957dce99b49d291c2e1b96af31a9e5.zip |
Fix journald logs --since
Signed-off-by: Ashley Cui <acui@redhat.com>
-rw-r--r-- | libpod/container_log_linux.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libpod/container_log_linux.go b/libpod/container_log_linux.go index c9620100e..af46191d0 100644 --- a/libpod/container_log_linux.go +++ b/libpod/container_log_linux.go @@ -47,7 +47,7 @@ func (c *Container) readFromJournal(ctx context.Context, options *logs.LogOption if time.Now().Before(options.Since) { return nil } - config.Since = time.Since(options.Since) + config.Since = -time.Since(options.Since) } config.Matches = append(config.Matches, journal.Match{ Field: "CONTAINER_ID_FULL", |