main: use JSONDump helper for debug output
This commit is contained in:
parent
50630e9f3d
commit
203e65066f
4
mount.go
4
mount.go
@ -2,7 +2,6 @@ package main
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"log"
|
||||
"log/syslog"
|
||||
@ -309,8 +308,7 @@ func initFuseFrontend(args *argContainer) (rootNode fs.InodeEmbedder, wipeKeys f
|
||||
if args.allow_other && os.Getuid() == 0 {
|
||||
frontendArgs.PreserveOwner = true
|
||||
}
|
||||
jsonBytes, _ := json.MarshalIndent(frontendArgs, "", "\t")
|
||||
tlog.Debug.Printf("frontendArgs: %s", string(jsonBytes))
|
||||
tlog.Debug.Printf("frontendArgs: %s", tlog.JSONDump(frontendArgs))
|
||||
|
||||
// Init crypto backend
|
||||
cCore := cryptocore.New(masterkey, cryptoBackend, contentenc.DefaultIVBits, args.hkdf, args.forcedecode)
|
||||
|
Loading…
x
Reference in New Issue
Block a user