Skip to content

Commit

Permalink
Log warning if skipping preflights
Browse files Browse the repository at this point in the history
Signed-off-by: Evans Mungai <evans@replicated.com>
  • Loading branch information
banjoh committed Sep 13, 2024
1 parent 144cfe4 commit d22ad66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/preflight/execute.go
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit d22ad66

Please sign in to comment.