spiegel_podman/cmd/podman/syslog_unsupported.go
Colin Walters 9a2c8b615e Fix missing newlines in stderr error messages
I happened to run `podman run --config=/path/to/file` and got
an error without a trailing newline, which was a bit jarring.

Fix the instances I noticed.

Assisted-by: OpenCode (Claude Opus 4.5)
Signed-off-by: Colin Walters <walters@verbum.org>
2025-12-17 07:36:04 -05:00

20 lines
306 B
Go

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