disable syslog logging on macOS (#5005) (#5295)

This commit is contained in:
Alessandro Ros 2025-12-27 13:59:33 +01:00 committed by GitHub
parent 20e7f1db75
commit ea4c4f1fbb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 15 additions and 3 deletions

View file

@ -0,0 +1,12 @@
//go:build darwin
package logger
import (
"fmt"
"io"
)
func newSysLog(_ string) (io.WriteCloser, error) {
return nil, fmt.Errorf("unavailable on macOS")
}

View file

@ -1,4 +1,4 @@
//go:build !windows
//go:build !windows && !darwin
package logger

View file

@ -7,6 +7,6 @@ import (
"io"
)
func newSysLog(prefix string) (io.WriteCloser, error) {
return nil, fmt.Errorf("not implemented on windows")
func newSysLog(_ string) (io.WriteCloser, error) {
return nil, fmt.Errorf("unavailable on Windows")
}