aboutsummaryrefslogtreecommitdiff
path: root/cmd/podman/libpodruntime/runtime.go
diff options
context:
space:
mode:
authorMatthew Heon <matthew.heon@pm.me>2019-07-16 15:56:24 -0400
committerMatthew Heon <matthew.heon@pm.me>2019-07-31 17:28:42 -0400
commit8e8d1ac1933e3891c597ea1b12e434d365b7d164 (patch)
tree2b31218bb242ed1fafcc31bc4f8e727846f2a461 /cmd/podman/libpodruntime/runtime.go
parent6619c073bda15ff828a49637b7330d01b7380e83 (diff)
downloadpodman-8e8d1ac1933e3891c597ea1b12e434d365b7d164.tar.gz
podman-8e8d1ac1933e3891c597ea1b12e434d365b7d164.tar.bz2
podman-8e8d1ac1933e3891c597ea1b12e434d365b7d164.zip
Add a flag to set events logger type
Signed-off-by: Matthew Heon <matthew.heon@pm.me>
Diffstat (limited to 'cmd/podman/libpodruntime/runtime.go')
-rw-r--r--cmd/podman/libpodruntime/runtime.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/cmd/podman/libpodruntime/runtime.go b/cmd/podman/libpodruntime/runtime.go
index 570288837..ee9e57966 100644
--- a/cmd/podman/libpodruntime/runtime.go
+++ b/cmd/podman/libpodruntime/runtime.go
@@ -118,6 +118,10 @@ func getRuntime(ctx context.Context, c *cliconfig.PodmanCommand, renumber, migra
options = append(options, libpod.WithNetworkCmdPath(c.GlobalFlags.NetworkCmdPath))
}
+ if c.Flags().Changed("events-backend") {
+ options = append(options, libpod.WithEventsLogger(c.GlobalFlags.EventsBackend))
+ }
+
if c.Flags().Changed("cgroup-manager") {
options = append(options, libpod.WithCgroupManager(c.GlobalFlags.CGroupManager))
} else {