From a5646cdc173886f2865ed4fb6e85f6168bc2c420 Mon Sep 17 00:00:00 2001 From: Daniel J Walsh Date: Tue, 21 Apr 2020 12:05:29 -0400 Subject: [PATCH] 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 --- common/pkg/config/libpodConfig.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/common/pkg/config/libpodConfig.go b/common/pkg/config/libpodConfig.go index cdb38a5146..89566f7895 100644 --- a/common/pkg/config/libpodConfig.go +++ b/common/pkg/config/libpodConfig.go @@ -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