mirror of
https://github.com/containers/podman.git
synced 2025-05-20 00:27:03 +08:00
Fix journald logs --since
Signed-off-by: Ashley Cui <acui@redhat.com>
This commit is contained in:
@ -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",
|
||||
|
Reference in New Issue
Block a user