mirror of
https://github.com/bluenviron/mediamtx.git
synced 2026-01-19 01:49:47 -08:00
parent
20e7f1db75
commit
ea4c4f1fbb
3 changed files with 15 additions and 3 deletions
12
internal/logger/syslog_darwin.go
Normal file
12
internal/logger/syslog_darwin.go
Normal 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")
|
||||
}
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
//go:build !windows
|
||||
//go:build !windows && !darwin
|
||||
|
||||
package logger
|
||||
|
||||
|
|
|
|||
|
|
@ -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")
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue