summaryrefslogtreecommitdiff
path: root/libpod/options.go
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 /libpod/options.go
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 'libpod/options.go')
-rw-r--r--libpod/options.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/libpod/options.go b/libpod/options.go
index 3f0f9fbe0..8f2d5cb15 100644
--- a/libpod/options.go
+++ b/libpod/options.go
@@ -578,6 +578,14 @@ func WithEnableSDNotify() RuntimeOption {
}
}
+// WithSyslog sets a runtime option so we know that we have to log to the syslog as well
+func WithSyslog() RuntimeOption {
+ return func(rt *Runtime) error {
+ rt.syslog = true
+ return nil
+ }
+}
+
// WithRuntimeFlags adds the global runtime flags to the container config
func WithRuntimeFlags(runtimeFlags []string) RuntimeOption {
return func(rt *Runtime) error {