mirror of
https://github.com/rclone/rclone.git
synced 2024-12-22 23:22:08 +01:00
bcdfad3c83
This changes log statements from log to fs package, which is required for --use-json-log to properly make log output in JSON format. The recently added custom linting rule, handled by ruleguard via gocritic via golangci-lint, warns about these and suggests the alternative. Fixing was therefore basically running "golangci-lint run --fix", although some manual fixup of mainly imports are necessary following that.
18 lines
329 B
Go
18 lines
329 B
Go
// Syslog interface for non-Unix variants only
|
|
|
|
//go:build windows || nacl || plan9
|
|
|
|
package log
|
|
|
|
import (
|
|
"runtime"
|
|
|
|
"github.com/rclone/rclone/fs"
|
|
)
|
|
|
|
// Starts syslog if configured, returns true if it was started
|
|
func startSysLog() bool {
|
|
fs.Fatalf(nil, "--syslog not supported on %s platform", runtime.GOOS)
|
|
return false
|
|
}
|