mirror of
https://github.com/containers/podman.git
synced 2025-05-20 16:47:39 +08:00
Tidy duplicate log tests
Some log tests were duplicated, and some didn't need to be repeated for every driver. Also, added some comments Signed-off-by: Ashley Cui <acui@redhat.com>
This commit is contained in:
@ -52,6 +52,7 @@ func (c *Container) readFromJournal(ctx context.Context, options *logs.LogOption
|
||||
if time.Now().Before(options.Since) {
|
||||
return nil
|
||||
}
|
||||
// coreos/go-systemd/sdjournal expects a negative time.Duration for times in the past
|
||||
config.Since = -time.Since(options.Since)
|
||||
}
|
||||
config.Matches = append(config.Matches, journal.Match{
|
||||
|
Reference in New Issue
Block a user