From d22ad66c4fd3223895fb8fea8b006a8c8b0029e6 Mon Sep 17 00:00:00 2001 From: Evans Mungai Date: Fri, 13 Sep 2024 14:41:44 +0100 Subject: [PATCH] Log warning if skipping preflights Signed-off-by: Evans Mungai --- pkg/preflight/execute.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/preflight/execute.go b/pkg/preflight/execute.go index c2ff39fd14..8f453daadb 100644 --- a/pkg/preflight/execute.go +++ b/pkg/preflight/execute.go @@ -145,7 +145,7 @@ func Execute(preflightSpec *troubleshootv1beta2.Preflight, ignorePermissionError } if isPermissionsError(err) { - logger.Debug("skipping analyze due to RBAC errors") + logger.Warnf("skipping analyze due to RBAC errors") rbacErrors := []*types.PreflightError{} for _, collector := range clusterCollectResult.Collectors { for _, e := range collector.GetRBACErrors() {