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. --- mount.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mount.go') diff --git a/mount.go b/mount.go index c2fd621..f02bc21 100644 --- a/mount.go +++ b/mount.go @@ -347,7 +347,7 @@ func initGoFuse(rootNode fs.InodeEmbedder, args *argContainer) *fuse.Server { } fuseOpts.NullPermissions = true // Enable go-fuse warnings - fuseOpts.Logger = log.New(os.Stderr, "go-fuse: ", 0) + fuseOpts.Logger = log.New(os.Stderr, "go-fuse: ", log.Lmicroseconds) fuseOpts.MountOptions = fuse.MountOptions{ // Writes and reads are usually capped at 128kiB on Linux through // the FUSE_MAX_PAGES_PER_REQ kernel constant in fuse_i.h. Our -- cgit v1.2.3