feat(support-bundle): optimize the error log of ceph and longhorn when kURL add-on were not enabled (#943)

This commit is contained in:
Dexter Yan
2023-01-10 09:37:42 +13:00
committed by GitHub
parent f1066f5d76
commit 962e2c7d7e
8 changed files with 76 additions and 25 deletions

View File

@@ -35,7 +35,7 @@ from a server that can be used to assist when troubleshooting a Kubernetes clust
if !v.GetBool("debug") {
klog.SetLogger(logr.Discard())
}
logger.SetQuiet(v.GetBool("quiet"))
logger.SetQuiet(!v.GetBool("debug"))
},
RunE: func(cmd *cobra.Command, args []string) error {
v := viper.GetViper()