mirror of
https://github.com/containers/podman.git
synced 2025-08-06 11:32:07 +08:00
podman events allow future time for --until
The podman events aren't read until the given timestamp if the timestamp is in the future. It just reads all events until now and exits afterwards. This does not make sense and does not match docker. The correct behavior is to read all events until the given time is reached. This fixes a bug where the wrong event log file path was used when running first time with a new storage location. Fixes #8694 This also fixes the events api endpoint which only exited when an error occurred. Otherwise it just hung after reading all events. Signed-off-by: Paul Holzinger <paul.holzinger@web.de>
This commit is contained in:
@ -502,6 +502,7 @@ func WithEventsLogger(logger string) RuntimeOption {
|
||||
}
|
||||
|
||||
rt.config.Engine.EventsLogger = logger
|
||||
rt.config.Engine.EventsLogFilePath = filepath.Join(rt.config.Engine.TmpDir, "events", "events.log")
|
||||
|
||||
return nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user