From 6cdf15abb5d9a5783d86dd583a97019099e8dc94 Mon Sep 17 00:00:00 2001 From: Gregory Kurtzer Date: Sat, 6 Mar 2021 17:45:14 -0800 Subject: [PATCH] Fix for issue #36. Debug option always takes precedence over verbose. --- internal/app/wwctl/root.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/app/wwctl/root.go b/internal/app/wwctl/root.go index 430938bf..e355cd37 100644 --- a/internal/app/wwctl/root.go +++ b/internal/app/wwctl/root.go @@ -50,10 +50,10 @@ func GetRootCommand() *cobra.Command { } func rootPersistentPreRunE(cmd *cobra.Command, args []string) error { - if verboseArg == true { - wwlog.SetLevel(wwlog.VERBOSE) - } else if debugArg == true { + if debugArg == true { wwlog.SetLevel(wwlog.DEBUG) + } else if verboseArg == true { + wwlog.SetLevel(wwlog.VERBOSE) } else { wwlog.SetLevel(wwlog.INFO) }