spiegel_podman/cmd/podman/syslog_unsupported.go
Valentin Rothberg 4652a2623f pass --syslog to the cleanup process
The --syslog flag has not been passed to the cleanup process (i.e.,
conmon's exit args) complicating debugging quite a bit.

Signed-off-by: Valentin Rothberg <vrothberg@redhat.com>
2023-09-20 15:37:07 +02:00

21 lines
330 B
Go

//go:build !linux && !freebsd
// +build !linux,!freebsd
package main
import (
"fmt"
"os"
"runtime"
"github.com/containers/podman/v4/cmd/podman/registry"
)
func syslogHook() {
if !registry.PodmanConfig().Syslog {
return
}
fmt.Fprintf(os.Stderr, "Logging to Syslog is not supported on %s", runtime.GOOS)
os.Exit(1)
}