547ddf4264
...unless "-nosyslog" is passed. All gocryptfs messages already go to syslog, but the messages that the go-fuse lib emits were still printed to stdout. Fixes issue #13 ( https://github.com/rfjakob/gocryptfs/issues/13 )
17 lines
319 B
Go
17 lines
319 B
Go
// +build !go1.5
|
|
// = go 1.4 or lower
|
|
|
|
package tlog
|
|
|
|
import (
|
|
"log/syslog"
|
|
)
|
|
|
|
func (l *toggledLogger) SwitchToSyslog(p syslog.Priority) {
|
|
Info.Printf("Cannot switch to syslog - need Go 1.5 or higher")
|
|
}
|
|
|
|
func SwitchLoggerToSyslog(p syslog.Priority) {
|
|
Info.Printf("Cannot switch to syslog - need Go 1.5 or higher")
|
|
}
|