main: show microseconds in go-fuse logs
Suppress the date but show microseconds in fuse debug logs (-fusedebug) and go-fuse warnings.
This commit is contained in:
parent
ec3eaf0b87
commit
871f305f90
2
main.go
2
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.
|
||||
|
2
mount.go
2
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
|
||||
|
Loading…
Reference in New Issue
Block a user