spiegel_podman/cmd/podman/syslog_unsupported.go
Valentin Rothberg ea08765f40 go fmt: use go 1.18 conditional-build syntax
Signed-off-by: Valentin Rothberg <vrothberg@redhat.com>
2022-03-18 09:11:53 +01:00

18 lines
212 B
Go

//go:build !linux
// +build !linux
package main
import (
"fmt"
"os"
)
func syslogHook() {
if !useSyslog {
return
}
fmt.Fprintf(os.Stderr, "Logging to Syslog is not supported on Windows")
os.Exit(1)
}