diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2021-11-22 16:39:12 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-22 16:39:12 +0100 |
commit | bfc929efc44cc9255406ed6c2abec1b8a4f36dab (patch) | |
tree | 9d9812aa975b548a6674365e8c9a889eb4ecc99d /libpod/network/netavark/network.go | |
parent | 26b45a1564fb01090f6a10776922654641a76681 (diff) | |
parent | 8198e96f3192c9a96b0568524d5732e34025e09f (diff) | |
download | podman-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/network/netavark/network.go')
-rw-r--r-- | libpod/network/netavark/network.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libpod/network/netavark/network.go b/libpod/network/netavark/network.go index cc6fb423c..540d8d6e5 100644 --- a/libpod/network/netavark/network.go +++ b/libpod/network/netavark/network.go @@ -37,6 +37,10 @@ type netavarkNetwork struct { // isMachine describes whenever podman runs in a podman machine environment. isMachine bool + // syslog describes whenever the netavark debbug output should be log to the syslog as well. + // This will use logrus to do so, make sure logrus is set up to log to the syslog. + syslog bool + // lock is a internal lock for critical operations lock lockfile.Locker @@ -68,6 +72,10 @@ type InitConfig struct { // LockFile is the path to lock file. LockFile string + + // Syslog describes whenever the netavark debbug output should be log to the syslog as well. + // This will use logrus to do so, make sure logrus is set up to log to the syslog. + Syslog bool } // NewNetworkInterface creates the ContainerNetwork interface for the netavark backend. @@ -122,6 +130,7 @@ func NewNetworkInterface(conf InitConfig) (types.ContainerNetwork, error) { defaultSubnet: defaultNet, isMachine: conf.IsMachine, lock: lock, + syslog: conf.Syslog, } return n, nil |