@@ -27,7 +27,6 @@ import (
2727 "github.com/redhat-openshift-ecosystem/openshift-preflight/artifacts"
2828 plibContainer "github.com/redhat-openshift-ecosystem/openshift-preflight/container"
2929 plibOperator "github.com/redhat-openshift-ecosystem/openshift-preflight/operator"
30- "github.com/sirupsen/logrus"
3130
3231 "github.com/redhat-best-practices-for-k8s/certsuite-claim/pkg/claim"
3332 "github.com/redhat-best-practices-for-k8s/certsuite/internal/log"
@@ -138,7 +137,7 @@ func addPreflightTestsToCatalog() {
138137 // Create artifacts handler
139138 artifactsWriter , err := artifacts .NewMapWriter ()
140139 if err != nil {
141- logrus . Errorf ( "error creating artifact, failed to add preflight tests to catalog" )
140+ log . Error ( "Error creating artifact, failed to add preflight tests to catalog: %v" , err )
142141 return
143142 }
144143 ctx := artifacts .ContextWithWriter (context .TODO (), artifactsWriter )
@@ -148,11 +147,11 @@ func addPreflightTestsToCatalog() {
148147 checkContainer := plibContainer .NewCheck (dummy , optsContainer ... )
149148 _ , checksOperator , err := checkOperator .List (ctx )
150149 if err != nil {
151- logrus . Errorf ( "error getting preflight operator tests." )
150+ log . Error ( "Error getting preflight operator tests: %v" , err )
152151 }
153152 _ , checksContainer , err := checkContainer .List (ctx )
154153 if err != nil {
155- logrus . Errorf ( "error getting preflight container tests." )
154+ log . Error ( "Error getting preflight container tests: %v" , err )
156155 }
157156
158157 allChecks := checksOperator
0 commit comments