From 442b7da3c1b795a510e1f395f779f1e1c9cba39d Mon Sep 17 00:00:00 2001 From: jonathancri Date: Fri, 15 Nov 2024 13:37:56 +0100 Subject: [PATCH] feat: change fmt for log --- config/sso_extended.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/config/sso_extended.go b/config/sso_extended.go index 9bdc574de28d..d71a1eb56c9b 100644 --- a/config/sso_extended.go +++ b/config/sso_extended.go @@ -7,6 +7,7 @@ import ( "strings" "github.com/argoproj/argo-workflows/v3/server/auth/devhub" + log "github.com/sirupsen/logrus" ) type SSOExtendedLabel struct { @@ -35,7 +36,7 @@ func RbacDelegateToLabel(ctx context.Context, mail string, apiUrl, apiEndpoint, mailParts := strings.Split(mail, "@") servicesAndGroup, err := devhub.GetServicesAndGroup(devhubClient, apiUrl, apiEndpoint, apiPassword, mailParts[0], writeGroups) if err != nil { - fmt.Printf("Can't Procces the petition on devhub to get roles %+v", err) + log.WithError(err).Error("can't Procces the petition on devhub to get roles %+v", err) } resourcesToFilterPopulated.ServiceToGroup = servicesAndGroup.ServiceToGroup if servicesAndGroup.ServiceToGroup != nil {