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) }