summaryrefslogtreecommitdiff
path: root/cmd/podman/syslog_unsupported.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/podman/syslog_unsupported.go')
-rw-r--r--cmd/podman/syslog_unsupported.go17
1 files changed, 17 insertions, 0 deletions
diff --git a/cmd/podman/syslog_unsupported.go b/cmd/podman/syslog_unsupported.go
new file mode 100644
index 000000000..3765d96b9
--- /dev/null
+++ b/cmd/podman/syslog_unsupported.go
@@ -0,0 +1,17 @@
+// +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)
+}