Hard code libpod.conf EventsLogger to File

Previous versions of podman ignored the EventsLogger setting
in libpod.conf and defaulted to "file".  Containers.conf
should follow this for backwards compatibility.

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
This commit is contained in:
Daniel J Walsh 2020-04-21 12:05:29 -04:00
parent c1586f6ea9
commit a5646cdc17
1 changed files with 6 additions and 0 deletions

View File

@ -224,6 +224,12 @@ func newLibpodConfig(c *Config) error {
}
}
// hard code EventsLogger to "file" to match older podman versions.
if config.EventsLogger != "file" {
logrus.Debugf("Ignoring lipod.conf EventsLogger setting %q. Use containers.conf if you want to change this setting and remove libpod.conf files.", config.EventsLogger)
config.EventsLogger = "file"
}
c.libpodToContainersConfig(config)
return nil