From 203e65066fc1197427353eed3ae0a5108a1121ee Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Sun, 20 Jun 2021 18:25:07 +0200 Subject: [PATCH] main: use JSONDump helper for debug output --- mount.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/mount.go b/mount.go index f992f94..e35e6c2 100644 --- a/mount.go +++ b/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)