From 3c5f389092d92c30c28da953e9f89aa437bfdae3 Mon Sep 17 00:00:00 2001 From: Aditya Sirish A Yelgundhalli Date: Mon, 21 Oct 2024 12:31:16 -0400 Subject: [PATCH] Update credential-cache messages to user Signed-off-by: Aditya Sirish A Yelgundhalli --- internal/cache/service/service.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/cache/service/service.go b/internal/cache/service/service.go index 0c26be8c..2522fa63 100644 --- a/internal/cache/service/service.go +++ b/internal/cache/service/service.go @@ -56,7 +56,7 @@ func (s *Service) GetCredential(req api.GetCredentialRequest, resp *api.Credenti fmt.Println("Get", req.ID) i, ok := s.store.Get(req.ID) if ok { - fmt.Println("found cred!") + fmt.Println("gitsign-credential-cache: found credential!") cred, ok := i.(*api.Credential) if !ok { return fmt.Errorf("unknown credential type %T", i) @@ -71,7 +71,7 @@ func (s *Service) GetCredential(req api.GetCredentialRequest, resp *api.Credenti } // If nothing is in the cache, fallback to interactive flow. - fmt.Println("no cred found, going through intereractive flow...") + fmt.Println("gitsign-credential-cache: no cached credential found, falling back to interactive flow...") idf := fulcio.NewIdentityFactory(os.Stdin, os.Stdout) id, err := idf.NewIdentity(ctx, req.Config) if err != nil {