summaryrefslogtreecommitdiff
path: root/pkg
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-11-22 16:39:12 +0100
committerGitHub <noreply@github.com>2021-11-22 16:39:12 +0100
commitbfc929efc44cc9255406ed6c2abec1b8a4f36dab (patch)
tree9d9812aa975b548a6674365e8c9a889eb4ecc99d /pkg
parent26b45a1564fb01090f6a10776922654641a76681 (diff)
parent8198e96f3192c9a96b0568524d5732e34025e09f (diff)
downloadpodman-bfc929efc44cc9255406ed6c2abec1b8a4f36dab.tar.gz
podman-bfc929efc44cc9255406ed6c2abec1b8a4f36dab.tar.bz2
podman-bfc929efc44cc9255406ed6c2abec1b8a4f36dab.zip
Merge pull request #12372 from Luap99/syslog-netavark
Make sure netavark output is logged to the syslog
Diffstat (limited to 'pkg')
-rw-r--r--pkg/domain/infra/runtime_libpod.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/pkg/domain/infra/runtime_libpod.go b/pkg/domain/infra/runtime_libpod.go
index cfb674b6d..90eb6abeb 100644
--- a/pkg/domain/infra/runtime_libpod.go
+++ b/pkg/domain/infra/runtime_libpod.go
@@ -236,6 +236,11 @@ func getRuntime(ctx context.Context, fs *flag.FlagSet, opts *engineOpts) (*libpo
options = append(options, libpod.WithRegistriesConf(cfg.RegistriesConf))
}
+ // no need to handle the error, it will return false anyway
+ if syslog, _ := fs.GetBool("syslog"); syslog {
+ options = append(options, libpod.WithSyslog())
+ }
+
// TODO flag to set CNI plugins dir?
if !opts.withFDS {