From c400aca5cf7b57f5e1e7a604cfeea2512643349f Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Mon, 27 Jun 2016 09:12:03 +0200 Subject: tlog: clean up messages from the go-fuse library Drop the date and add the "go-fuse: " prefix so you can see where the message is coming from. Before: Jun 27 09:03:15 brikett gocryptfs[4150]: 2016/06/27 09:03:15 Unimplemented opcode INTERRUPT After: Jun 27 09:10:58 brikett gocryptfs[4961]: go-fuse: Unimplemented opcode INTERRUPT --- internal/tlog/log_go1.5.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'internal') diff --git a/internal/tlog/log_go1.5.go b/internal/tlog/log_go1.5.go index 40ec656..9c152d9 100644 --- a/internal/tlog/log_go1.5.go +++ b/internal/tlog/log_go1.5.go @@ -24,6 +24,9 @@ func SwitchLoggerToSyslog(p syslog.Priority) { if err != nil { Warn.Printf("SwitchLoggerToSyslog: %v", err) } else { + log.SetPrefix("go-fuse: ") + // Disable printing the timestamp, syslog already provides that + log.SetFlags(0) log.SetOutput(w) } } -- cgit v1.2.3