From 871f305f9016b9f52bbc7d49ed4da1a7fffacf9d Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Wed, 14 Oct 2020 15:33:37 +0200 Subject: main: show microseconds in go-fuse logs Suppress the date but show microseconds in fuse debug logs (-fusedebug) and go-fuse warnings. --- main.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'main.go') diff --git a/main.go b/main.go index 49e213b..61dffb2 100644 --- a/main.go +++ b/main.go @@ -161,6 +161,8 @@ func main() { if os.Getenv("PATH") == "" { os.Setenv("PATH", "/usr/sbin:/usr/bin:/sbin:/bin") } + // Show microseconds in go-fuse debug output (-fusedebug) + log.SetFlags(log.Lmicroseconds) var err error // Parse all command-line options (i.e. arguments starting with "-") // into "args". Path arguments are parsed below. -- cgit v1.2.3