mirror of
https://github.com/rclone/rclone.git
synced 2025-08-15 16:22:47 +02:00
fs/log: don't compile systemd log integration for non unix systems
This commit is contained in:
16
fs/log/systemd.go
Normal file
16
fs/log/systemd.go
Normal file
@ -0,0 +1,16 @@
|
||||
// Systemd interface for non-Unix variants only
|
||||
|
||||
// +build windows nacl plan9
|
||||
|
||||
package log
|
||||
|
||||
import (
|
||||
"log"
|
||||
"runtime"
|
||||
)
|
||||
|
||||
// Enables systemd logs if configured or if auto detected
|
||||
func startSystemdLog() bool {
|
||||
log.Fatalf("--log-systemd not supported on %s platform", runtime.GOOS)
|
||||
return false
|
||||
}
|
Reference in New Issue
Block a user