From d2e5692694e4537038434b56020f4e6c9e782955 Mon Sep 17 00:00:00 2001 From: Eugene Bujak Date: Fri, 12 Oct 2018 19:49:08 +0300 Subject: [PATCH] Remove debug logging added by previous commit. Closes #363. --- app.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/app.go b/app.go index 222f9d9c..d47db95c 100644 --- a/app.go +++ b/app.go @@ -187,22 +187,18 @@ func askUsernamePasswordIfPossible() error { trace("File %s exists, won't ask for password", configfile) return nil } - if !terminal.IsTerminal(int(os.Stdin.Fd())) { return nil // do nothing } - trace("stdin is a terminal") if !terminal.IsTerminal(int(os.Stdout.Fd())) { return nil // do nothing } - trace("stdout is a terminal") fmt.Printf("Would you like to set user/password for the web interface authentication (yes/no)?\n") yesno, err := promptAndGet("Please type 'yes' or 'no': ") if err != nil { return err } if yesno[0] != 'y' && yesno[0] != 'Y' { - trace("User didn't want password, exiting") return nil } username, err := promptAndGet("Please enter the username: ")