Fix for issue #36. Debug option always takes precedence over verbose.

This commit is contained in:
Gregory Kurtzer
2021-03-06 17:45:14 -08:00
parent b4a6e45b35
commit 6cdf15abb5

View File

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