automation-tests/cmd/podman/syslog_unsupported.go

22 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)
}