Skip to content

Commit

Permalink
Fix verbose logging flag not being applied properly
Browse files Browse the repository at this point in the history
  • Loading branch information
erkie committed Jan 29, 2019
1 parent 92c36ca commit 3891a1f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/backup.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ func Begin(cliArgs []string) {
timestampFlag := flag.String("timestamp", "", "List backups since timestamp. Should be in format YYYYMMDDHHII")
verboseFlag := flag.Bool("v", false, "Verbose logging")

pkg.VerboseMode = *verboseFlag

configStruct = loadConfig(args[1:])

pkg.VerboseMode = *verboseFlag

if configStruct.DOSpaceName == "" {
pkg.ErrorLog.Fatalln("-do-space-name parameter required")
}
Expand Down

0 comments on commit 3891a1f

Please sign in to comment.