aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorJakob Unterwurzacher2015-11-15 13:56:01 +0100
committerJakob Unterwurzacher2015-11-15 13:56:01 +0100
commit09499be6e9bffe3bd24f017b15736125d72c450c (patch)
tree37b86d044962726631ce7e417d4e1d2182d87974 /main.go
parent7a2ab0b233fba71fa03c461a94d50c12dcc1d5e3 (diff)
Move "Debug output enabled" after forkChild() to remove duplicate output
Diffstat (limited to 'main.go')
-rw-r--r--main.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/main.go b/main.go
index 5fcf95e..2a47e8a 100644
--- a/main.go
+++ b/main.go
@@ -144,10 +144,6 @@ func main() {
"successful mount - used internally for daemonization")
flagSet.Parse(os.Args[1:])
- if args.debug {
- cryptfs.Debug.Enable()
- cryptfs.Debug.Printf("Debug output enabled\n")
- }
// By default, let the child handle everything.
// The parent *could* handle operations that do not require backgrounding by
// itself, but that would make the code paths more complicated.
@@ -160,6 +156,10 @@ func main() {
printVersion()
os.Exit(0)
}
+ if args.debug {
+ cryptfs.Debug.Enable()
+ cryptfs.Debug.Printf("Debug output enabled\n")
+ }
// Every operation below requires CIPHERDIR. Check that we have it.
if flagSet.NArg() >= 1 {
args.cipherdir, _ = filepath.Abs(flagSet.Arg(0))