From df41183e9b86ffd152203f4addfb649319b2cb6e Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Fri, 22 Jan 2016 21:39:35 +0100 Subject: Disable syslog in Go 1.4 and lower (method SetOutput does not exist) --- cryptfs/log.go | 9 --------- 1 file changed, 9 deletions(-) (limited to 'cryptfs/log.go') diff --git a/cryptfs/log.go b/cryptfs/log.go index a5b5115..44cb84f 100644 --- a/cryptfs/log.go +++ b/cryptfs/log.go @@ -3,7 +3,6 @@ package cryptfs import ( "encoding/json" "log" - "log/syslog" "os" ) @@ -34,14 +33,6 @@ func (l *toggledLogger) Println(v ...interface{}) { } l.Logger.Println(v...) } -func (l *toggledLogger) SwitchToSyslog(p syslog.Priority) { - w, err := syslog.New(p, PROGRAM_NAME) - if err != nil { - Warn.Printf("Cannot switch 0x%02x to syslog: %v", p, err) - } else { - l.SetOutput(w) - } -} // As defined by http://elinux.org/Debugging_by_printing#Log_Levels // Debug messages -- cgit v1.2.3